: sparc64: Clean up CPU chip type probing code.
David Miller
maintainerPATCH 1/1 : sparc64: Clean up CPU chip type probing code.
I've always wanted to get rid of some of the cob webs in this guy.
sparc64: Clean up CPU chip type probing code.
Three main things:
1) Make prober an arch initcall instead of using hard-coded invocation from paging_init()
2) Shrink table size, the fpu ident stuff was never used.
3) Use named struct initialized in table.
Signed-off-by David S. Miller <[email protected]>
--- arch/sparc/include/asm/cpudata_64.h | 1 - arch/sparc64/kernel/cpu.c | 208 ++++++++++++++++++----------------- arch/sparc64/kernel/entry.h | 4 +- arch/sparc64/mm/init.c | 2 - 4 files changed, 111 insertions(+), 104 deletions(-)
arch/sparc/include/asm/cpudata_64.h +0 -1
@@ -86,7 +86,6 @@ extern struct trap_per_cpu trap_block[NR_CPUS];extern void init_cur_cpu_trap (struct thread_info *);extern void setup_tba (void );extern int ncpus_probed; -extern void __init cpu_probe (void );extern const struct seq_operations cpuinfo_op;extern unsigned long real_hard_smp_processor_id (void );
arch/sparc64/kernel/cpu.c +109 -97
235 lines not on this page · raw message
arch/sparc64/kernel/entry.h +2 -2
@@ -5,8 +5,8 @@#include <linux/types.h> #include <linux/init.h> -extern char *sparc_cpu_type; -extern char *sparc_fpu_type; +extern const char *sparc_cpu_type; +extern const char *sparc_fpu_type;extern void __init per_cpu_patch (void );extern void __init sun4v_patch (void );
arch/sparc64/mm/init.c +0 -2
@@ -1841,8 +1841,6 @@ void __init paging_init(void) }printk ("Booting Linux...\n" ); - -cpu_probe (); }int __init page_in_phys_avail (unsigned long paddr)
Signature · 1 line
1.5.6.5.GIT