sparc: consolidate show_cpuinfo in cpu.c
Subsystems (2)
PATCH 2/3 sparc: consolidate show_cpuinfo in cpu.c
We have all the cpu related info in cpu.c - so move the remaining functions to support /proc/cpuinfo to this file.
Signed-off-by Sam Ravnborg <[email protected]>
--- arch/sparc/include/asm/pgtable_64.h | 3 + arch/sparc/include/asm/smp_64.h | 4 + arch/sparc/include/asm/system_64.h | 4 - arch/sparc/kernel/cpu.c | 127 ++++++++++++++++++++++++++++++++++- arch/sparc/kernel/kernel.h | 4 +- arch/sparc/kernel/perf_event.c | 1 + arch/sparc/kernel/setup_32.c | 69 ------------------- arch/sparc/kernel/setup_64.c | 78 --------------------- 8 files changed, 133 insertions(+), 157 deletions(-)
arch/sparc/include/asm/pgtable_64.h +3 -0
@@ -699,6 +699,9 @@ extern pmd_t swapper_low_pmd_dir[2048];extern void paging_init (void );extern unsigned long find_ecache_flush_span (unsigned long size); +struct seq_file ; +extern void mmu_info (struct seq_file *); +/* These do nothing with the way I have things setup. */ #define mmu_lockarea (vaddr, len) (vaddr)#define mmu_unlockarea (vaddr, len) do { } while(0)
arch/sparc/include/asm/smp_64.h +4 -0
@@ -49,6 +49,10 @@ extern void cpu_play_dead(void);extern void smp_fetch_global_regs (void ); +struct seq_file ; +void smp_bogo (struct seq_file *); +void smp_info (struct seq_file *); +#ifdef CONFIG_HOTPLUG_CPU extern int __cpu_disable (void );extern void __cpu_die (unsigned int cpu);
arch/sparc/include/asm/system_64.h +0 -4
@@ -29,10 +29,6 @@ enum sparc_cpu {/* This cannot ever be a sun4c :) That's just history. */ #define ARCH_SUN4C 0 -extern const char *sparc_cpu_type; -extern const char *sparc_fpu_type; -extern const char *sparc_pmu_type; -extern char reboot_command[];/* These are here in an effort to more fully work around Spitfire Errata
arch/sparc/kernel/cpu.c +124 -3
160 lines not on this page · raw message
arch/sparc/kernel/kernel.h +1 -3
@@ -6,11 +6,9 @@#include <asm/traps.h> /* cpu.c */ -extern const char *sparc_cpu_type;extern const char *sparc_pmu_type; -extern const char *sparc_fpu_type; -extern unsigned int fsr_storage; +extern int ncpus_probed;#ifdef CONFIG_SPARC32 /* cpu.c */
arch/sparc/kernel/perf_event.c +1 -0
@@ -26,6 +26,7 @@#include <asm/nmi.h> #include <asm/pcr.h> +#include "kernel.h" #include "kstack.h" /* Sparc64 chips have two performance counters, 32-bits each, with
arch/sparc/kernel/setup_32.c +0 -69
75 lines not on this page · raw message
arch/sparc/kernel/setup_64.c +0 -78
84 lines not on this page · raw message
Signature · 1 line
1.6.0.6
From: Sam Ravnborg <[email protected]>
Date: Wed, 20 Apr 2011 22:09:00 +0200
Quoted 4 lines
We have all the cpu related info in
cpu.c- so move the remaining functions to support/proc/cpuinfoto this file.Signed-off-by Sam Ravnborg <[email protected]>
Applied to sparc-next-2.6