Skip to contentSkip to conversation

sparc: consolidate show_cpuinfo in cpu.c

PATCH Applied Sam Ravnborg 2 participants 2 messages Apr 20, 2011 – Apr 21, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 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
index f8dddb7..b77128c 100644
@@ -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
index f49e11c..20bca89 100644
@@ -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
index e3b65d8..3c96d3b 100644
@@ -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
index 487d67a..6f6544c 100644
@@ -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
index ee8426e..2cb0e1c 100644
@@ -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