1
2
3
4
5
6
7
8 #ifndef __ASM_MACH_PARAVIRT_CPU_FEATURE_OVERRIDES_H
9 #define __ASM_MACH_PARAVIRT_CPU_FEATURE_OVERRIDES_H
10
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
16
17
18
19
20 #ifdef CONFIG_SMP
21 # define kernel_uses_llsc 1
22 #else
23 # define kernel_uses_llsc 0
24 #endif
25
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
31 #else
32 #define cpu_has_octeon_cache 0
33 #define cpu_has_4k_cache 1
34 #endif
35
36 #endif