aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-10-20 03:02:01 -0400
committerPaul Mackerras <paulus@samba.org>2005-10-20 03:02:01 -0400
commitd8699e65c6bc0a81b5e679ca5b135bfe3c3fb483 (patch)
treeba80488ff6b5b7e15c999233fe798332fa979430
parent971dc77b64db9466f5caab56019e62a93c0ddfc5 (diff)
ppc64: Change ppc_md.get_cpuinfo to ppc_md.show_cpuinfo
... for consistency with ppc32; also add in ppc32's show_percpuinfo function. Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r--arch/powerpc/kernel/setup_64.c4
-rw-r--r--arch/powerpc/platforms/iseries/setup.c4
-rw-r--r--arch/ppc64/kernel/bpa_setup.c4
-rw-r--r--arch/ppc64/kernel/pmac_setup.c2
-rw-r--r--arch/ppc64/kernel/setup.c4
-rw-r--r--include/asm-powerpc/machdep.h7
6 files changed, 11 insertions, 14 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index 6f29614c3581..97ffdcf09c03 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -704,8 +704,8 @@ static int show_cpuinfo(struct seq_file *m, void *v)
704 if (cpu_id == NR_CPUS) { 704 if (cpu_id == NR_CPUS) {
705 seq_printf(m, "timebase\t: %lu\n", ppc_tb_freq); 705 seq_printf(m, "timebase\t: %lu\n", ppc_tb_freq);
706 706
707 if (ppc_md.get_cpuinfo != NULL) 707 if (ppc_md.show_cpuinfo != NULL)
708 ppc_md.get_cpuinfo(m); 708 ppc_md.show_cpuinfo(m);
709 709
710 return 0; 710 return 0;
711 } 711 }
diff --git a/arch/powerpc/platforms/iseries/setup.c b/arch/powerpc/platforms/iseries/setup.c
index 41cd5b689545..b27901481782 100644
--- a/arch/powerpc/platforms/iseries/setup.c
+++ b/arch/powerpc/platforms/iseries/setup.c
@@ -587,7 +587,7 @@ static void __init iSeries_setup_arch(void)
587 printk("Processor version = %x\n", systemcfg->processor); 587 printk("Processor version = %x\n", systemcfg->processor);
588} 588}
589 589
590static void iSeries_get_cpuinfo(struct seq_file *m) 590static void iSeries_show_cpuinfo(struct seq_file *m)
591{ 591{
592 seq_printf(m, "machine\t\t: 64-bit iSeries Logical Partition\n"); 592 seq_printf(m, "machine\t\t: 64-bit iSeries Logical Partition\n");
593} 593}
@@ -760,7 +760,7 @@ static int __init iseries_probe(int platform)
760 760
761struct machdep_calls __initdata iseries_md = { 761struct machdep_calls __initdata iseries_md = {
762 .setup_arch = iSeries_setup_arch, 762 .setup_arch = iSeries_setup_arch,
763 .get_cpuinfo = iSeries_get_cpuinfo, 763 .show_cpuinfo = iSeries_show_cpuinfo,
764 .init_IRQ = iSeries_init_IRQ, 764 .init_IRQ = iSeries_init_IRQ,
765 .get_irq = iSeries_get_irq, 765 .get_irq = iSeries_get_irq,
766 .init_early = iSeries_init_early, 766 .init_early = iSeries_init_early,
diff --git a/arch/ppc64/kernel/bpa_setup.c b/arch/ppc64/kernel/bpa_setup.c
index 017cf23e91fa..c2dc8f282eb8 100644
--- a/arch/ppc64/kernel/bpa_setup.c
+++ b/arch/ppc64/kernel/bpa_setup.c
@@ -55,7 +55,7 @@
55#define DBG(fmt...) 55#define DBG(fmt...)
56#endif 56#endif
57 57
58void bpa_get_cpuinfo(struct seq_file *m) 58void bpa_show_cpuinfo(struct seq_file *m)
59{ 59{
60 struct device_node *root; 60 struct device_node *root;
61 const char *model = ""; 61 const char *model = "";
@@ -129,7 +129,7 @@ struct machdep_calls __initdata bpa_md = {
129 .probe = bpa_probe, 129 .probe = bpa_probe,
130 .setup_arch = bpa_setup_arch, 130 .setup_arch = bpa_setup_arch,
131 .init_early = bpa_init_early, 131 .init_early = bpa_init_early,
132 .get_cpuinfo = bpa_get_cpuinfo, 132 .show_cpuinfo = bpa_show_cpuinfo,
133 .restart = rtas_restart, 133 .restart = rtas_restart,
134 .power_off = rtas_power_off, 134 .power_off = rtas_power_off,
135 .halt = rtas_halt, 135 .halt = rtas_halt,
diff --git a/arch/ppc64/kernel/pmac_setup.c b/arch/ppc64/kernel/pmac_setup.c
index be4c1693d149..c059805d8cce 100644
--- a/arch/ppc64/kernel/pmac_setup.c
+++ b/arch/ppc64/kernel/pmac_setup.c
@@ -505,7 +505,7 @@ struct machdep_calls __initdata pmac_md = {
505 .probe = pmac_probe, 505 .probe = pmac_probe,
506 .setup_arch = pmac_setup_arch, 506 .setup_arch = pmac_setup_arch,
507 .init_early = pmac_init_early, 507 .init_early = pmac_init_early,
508 .get_cpuinfo = pmac_show_cpuinfo, 508 .show_cpuinfo = pmac_show_cpuinfo,
509 .init_IRQ = pmac_init_IRQ, 509 .init_IRQ = pmac_init_IRQ,
510 .get_irq = mpic_get_irq, 510 .get_irq = mpic_get_irq,
511 .pcibios_fixup = pmac_pcibios_fixup, 511 .pcibios_fixup = pmac_pcibios_fixup,
diff --git a/arch/ppc64/kernel/setup.c b/arch/ppc64/kernel/setup.c
index 3e6c1547b718..42019be0c6ad 100644
--- a/arch/ppc64/kernel/setup.c
+++ b/arch/ppc64/kernel/setup.c
@@ -703,8 +703,8 @@ static int show_cpuinfo(struct seq_file *m, void *v)
703 if (cpu_id == NR_CPUS) { 703 if (cpu_id == NR_CPUS) {
704 seq_printf(m, "timebase\t: %lu\n", ppc_tb_freq); 704 seq_printf(m, "timebase\t: %lu\n", ppc_tb_freq);
705 705
706 if (ppc_md.get_cpuinfo != NULL) 706 if (ppc_md.show_cpuinfo != NULL)
707 ppc_md.get_cpuinfo(m); 707 ppc_md.show_cpuinfo(m);
708 708
709 return 0; 709 return 0;
710 } 710 }
diff --git a/include/asm-powerpc/machdep.h b/include/asm-powerpc/machdep.h
index f060553b997a..8a0969b6243c 100644
--- a/include/asm-powerpc/machdep.h
+++ b/include/asm-powerpc/machdep.h
@@ -86,7 +86,8 @@ struct machdep_calls {
86 void (*setup_arch)(void); 86 void (*setup_arch)(void);
87 void (*init_early)(void); 87 void (*init_early)(void);
88 /* Optional, may be NULL. */ 88 /* Optional, may be NULL. */
89 void (*get_cpuinfo)(struct seq_file *m); 89 void (*show_cpuinfo)(struct seq_file *m);
90 void (*show_percpuinfo)(struct seq_file *m, int i);
90 91
91 void (*init_IRQ)(void); 92 void (*init_IRQ)(void);
92 int (*get_irq)(struct pt_regs *); 93 int (*get_irq)(struct pt_regs *);
@@ -153,10 +154,6 @@ struct machdep_calls {
153 void (*enable_pmcs)(void); 154 void (*enable_pmcs)(void);
154 155
155#ifdef CONFIG_PPC32 /* XXX for now */ 156#ifdef CONFIG_PPC32 /* XXX for now */
156 /* Optional, may be NULL. */
157 int (*show_cpuinfo)(struct seq_file *m);
158 int (*show_percpuinfo)(struct seq_file *m, int i);
159
160 /* A general init function, called by ppc_init in init/main.c. 157 /* A general init function, called by ppc_init in init/main.c.
161 May be NULL. */ 158 May be NULL. */
162 void (*init)(void); 159 void (*init)(void);