2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 2013 Cavium, Inc.
8 #ifndef __ASM_MACH_PARAVIRT_CPU_FEATURE_OVERRIDES_H
9 #define __ASM_MACH_PARAVIRT_CPU_FEATURE_OVERRIDES_H
11 #define cpu_has_4kex 1
12 #define cpu_has_3k_cache 0
13 #define cpu_has_tx39_cache 0
14 #define cpu_has_counter 1
15 #define cpu_has_llsc 1
17 * We Disable LL/SC on non SMP systems as it is faster to disable
18 * interrupts for atomic access than a LL/SC.
21 # define kernel_uses_llsc 1
23 # define kernel_uses_llsc 0
26 #ifdef CONFIG_CPU_CAVIUM_OCTEON
27 #define cpu_dcache_line_size() 128
28 #define cpu_icache_line_size() 128
29 #define cpu_has_octeon_cache 1
30 #define cpu_has_4k_cache 0
32 #define cpu_has_octeon_cache 0
33 #define cpu_has_4k_cache 1
36 #endif /* __ASM_MACH_PARAVIRT_CPU_FEATURE_OVERRIDES_H */