diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2013-06-15 10:21:51 +0530 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2013-06-22 13:46:43 +0530 |
commit | 30499186602afa1d62c2e5d354d02214a0ee00b7 (patch) | |
tree | d0e928b54b995702822c70a32b3479625ff30c1f /arch/arc/include/asm/cacheflush.h | |
parent | 6546415226f2fc3ab0a820464774e02a1679f90a (diff) | |
download | op-kernel-dev-30499186602afa1d62c2e5d354d02214a0ee00b7.zip op-kernel-dev-30499186602afa1d62c2e5d354d02214a0ee00b7.tar.gz |
ARC: cache detection code bitrot
* Number of (i|d)cache ways can be retrieved from BCRs and hence no need
to cross check with with built-in constants
* Use of IS_ENABLED() to check for a Kconfig option
* is_not_cache_aligned() not used anymore
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include/asm/cacheflush.h')
-rw-r--r-- | arch/arc/include/asm/cacheflush.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arc/include/asm/cacheflush.h b/arch/arc/include/asm/cacheflush.h index ef62682..185dfd0 100644 --- a/arch/arc/include/asm/cacheflush.h +++ b/arch/arc/include/asm/cacheflush.h @@ -86,11 +86,7 @@ void flush_anon_page(struct vm_area_struct *vma, */ static inline int cache_is_vipt_aliasing(void) { -#ifdef CONFIG_ARC_CACHE_VIPT_ALIASING - return 1; -#else - return 0; -#endif + return IS_ENABLED(CONFIG_ARC_CACHE_VIPT_ALIASING); } #define CACHE_COLOR(addr) (((unsigned long)(addr) >> (PAGE_SHIFT)) & 1) |