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

MIPS: SPRAM: Clean up support code a little

Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Chris Dearman and committed by
Ralf Baechle
a074f0e8 a4e7cac1

+12 -10
+10
arch/mips/include/asm/spram.h
··· 1 + #ifndef _MIPS_SPRAM_H 2 + #define _MIPS_SPRAM_H 3 + 4 + #ifdef CONFIG_CPU_MIPSR2 5 + extern __init void spram_config(void); 6 + #else 7 + static inline void spram_config(void) { }; 8 + #endif /* CONFIG_CPU_MIPSR2 */ 9 + 10 + #endif /* _MIPS_SPRAM_H */
+1 -7
arch/mips/kernel/cpu-probe.c
··· 23 23 #include <asm/mipsregs.h> 24 24 #include <asm/system.h> 25 25 #include <asm/watch.h> 26 - 26 + #include <asm/spram.h> 27 27 /* 28 28 * Not all of the MIPS CPUs have the "wait" instruction available. Moreover, 29 29 * the implementation of the "wait" feature differs between CPU families. This ··· 710 710 711 711 mips_probe_watch_registers(c); 712 712 } 713 - 714 - #ifdef CONFIG_CPU_MIPSR2 715 - extern void spram_config(void); 716 - #else 717 - static inline void spram_config(void) {} 718 - #endif 719 713 720 714 static inline void cpu_probe_mips(struct cpuinfo_mips *c, unsigned int cpu) 721 715 {
+1 -3
arch/mips/kernel/spram.c
··· 13 13 #include <linux/ptrace.h> 14 14 #include <linux/stddef.h> 15 15 16 - #include <asm/cpu.h> 17 16 #include <asm/fpu.h> 18 17 #include <asm/mipsregs.h> 19 18 #include <asm/system.h> ··· 197 198 offset += 2 * SPRAM_TAG_STRIDE; 198 199 } 199 200 } 200 - 201 - __cpuinit void spram_config(void) 201 + void __cpuinit spram_config(void) 202 202 { 203 203 struct cpuinfo_mips *c = &current_cpu_data; 204 204 unsigned int config0;