Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Hook Cavium OCTEON cache init into cache.c

Follow precedent of other boards, and hook-up the CPU specific cache
init.

Signed-off-by: Tomaso Paoletti <tpaoletti@caviumnetworks.com>
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

David Daney and committed by
Ralf Baechle
47d979ec 0dd4781b

+9
+3
arch/mips/include/asm/cpu-features.h
··· 38 38 #ifndef cpu_has_tx39_cache 39 39 #define cpu_has_tx39_cache (cpu_data[0].options & MIPS_CPU_TX39_CACHE) 40 40 #endif 41 + #ifndef cpu_has_octeon_cache 42 + #define cpu_has_octeon_cache 0 43 + #endif 41 44 #ifndef cpu_has_fpu 42 45 #define cpu_has_fpu (current_cpu_data.options & MIPS_CPU_FPU) 43 46 #define raw_cpu_has_fpu (raw_current_cpu_data.options & MIPS_CPU_FPU)
+6
arch/mips/mm/cache.c
··· 182 182 tx39_cache_init(); 183 183 } 184 184 185 + if (cpu_has_octeon_cache) { 186 + extern void __weak octeon_cache_init(void); 187 + 188 + octeon_cache_init(); 189 + } 190 + 185 191 setup_protection_map(); 186 192 } 187 193