Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11609
b: refs/heads/master
c: d8699e6
h: refs/heads/master
i:
  11607: 99c532d
v: v3
  • Loading branch information
Paul Mackerras committed Oct 20, 2005
1 parent 74361b9 commit 7bab8b6
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 971dc77b64db9466f5caab56019e62a93c0ddfc5
refs/heads/master: d8699e65c6bc0a81b5e679ca5b135bfe3c3fb483
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/kernel/setup_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,8 @@ static int show_cpuinfo(struct seq_file *m, void *v)
if (cpu_id == NR_CPUS) {
seq_printf(m, "timebase\t: %lu\n", ppc_tb_freq);

if (ppc_md.get_cpuinfo != NULL)
ppc_md.get_cpuinfo(m);
if (ppc_md.show_cpuinfo != NULL)
ppc_md.show_cpuinfo(m);

return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/platforms/iseries/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ static void __init iSeries_setup_arch(void)
printk("Processor version = %x\n", systemcfg->processor);
}

static void iSeries_get_cpuinfo(struct seq_file *m)
static void iSeries_show_cpuinfo(struct seq_file *m)
{
seq_printf(m, "machine\t\t: 64-bit iSeries Logical Partition\n");
}
Expand Down Expand Up @@ -760,7 +760,7 @@ static int __init iseries_probe(int platform)

struct machdep_calls __initdata iseries_md = {
.setup_arch = iSeries_setup_arch,
.get_cpuinfo = iSeries_get_cpuinfo,
.show_cpuinfo = iSeries_show_cpuinfo,
.init_IRQ = iSeries_init_IRQ,
.get_irq = iSeries_get_irq,
.init_early = iSeries_init_early,
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/ppc64/kernel/bpa_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#define DBG(fmt...)
#endif

void bpa_get_cpuinfo(struct seq_file *m)
void bpa_show_cpuinfo(struct seq_file *m)
{
struct device_node *root;
const char *model = "";
Expand Down Expand Up @@ -129,7 +129,7 @@ struct machdep_calls __initdata bpa_md = {
.probe = bpa_probe,
.setup_arch = bpa_setup_arch,
.init_early = bpa_init_early,
.get_cpuinfo = bpa_get_cpuinfo,
.show_cpuinfo = bpa_show_cpuinfo,
.restart = rtas_restart,
.power_off = rtas_power_off,
.halt = rtas_halt,
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/ppc64/kernel/pmac_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ struct machdep_calls __initdata pmac_md = {
.probe = pmac_probe,
.setup_arch = pmac_setup_arch,
.init_early = pmac_init_early,
.get_cpuinfo = pmac_show_cpuinfo,
.show_cpuinfo = pmac_show_cpuinfo,
.init_IRQ = pmac_init_IRQ,
.get_irq = mpic_get_irq,
.pcibios_fixup = pmac_pcibios_fixup,
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/ppc64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,8 @@ static int show_cpuinfo(struct seq_file *m, void *v)
if (cpu_id == NR_CPUS) {
seq_printf(m, "timebase\t: %lu\n", ppc_tb_freq);

if (ppc_md.get_cpuinfo != NULL)
ppc_md.get_cpuinfo(m);
if (ppc_md.show_cpuinfo != NULL)
ppc_md.show_cpuinfo(m);

return 0;
}
Expand Down
7 changes: 2 additions & 5 deletions trunk/include/asm-powerpc/machdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ struct machdep_calls {
void (*setup_arch)(void);
void (*init_early)(void);
/* Optional, may be NULL. */
void (*get_cpuinfo)(struct seq_file *m);
void (*show_cpuinfo)(struct seq_file *m);
void (*show_percpuinfo)(struct seq_file *m, int i);

void (*init_IRQ)(void);
int (*get_irq)(struct pt_regs *);
Expand Down Expand Up @@ -153,10 +154,6 @@ struct machdep_calls {
void (*enable_pmcs)(void);

#ifdef CONFIG_PPC32 /* XXX for now */
/* Optional, may be NULL. */
int (*show_cpuinfo)(struct seq_file *m);
int (*show_percpuinfo)(struct seq_file *m, int i);

/* A general init function, called by ppc_init in init/main.c.
May be NULL. */
void (*init)(void);
Expand Down

0 comments on commit 7bab8b6

Please sign in to comment.