diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2006-03-21 04:46:04 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-03-21 23:04:22 -0500 |
commit | a9ea2101aaa7fe73cb352cea4145853efdabaa0d (patch) | |
tree | 4dbeaec2e3ac65869d3e13e48ec91cf8eb853d05 | |
parent | 260de22faac4d336ca122ebd0f1e59279d0b1dfd (diff) |
[PATCH] powerpc: iseries: Remove pointless iSeries_(restart|power_off|halt)
These routines just call through to the mf routines, so point ppc_md straight
at the mf routines. We need to pass the cmd through to mf_reboot to make it
work, but that seems reasonable.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | arch/powerpc/platforms/iseries/mf.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/iseries/setup.c | 30 | ||||
-rw-r--r-- | include/asm-powerpc/iseries/mf.h | 2 |
3 files changed, 5 insertions, 29 deletions
diff --git a/arch/powerpc/platforms/iseries/mf.c b/arch/powerpc/platforms/iseries/mf.c index 97a26137cf40..18054e922bd1 100644 --- a/arch/powerpc/platforms/iseries/mf.c +++ b/arch/powerpc/platforms/iseries/mf.c | |||
@@ -599,7 +599,7 @@ void mf_power_off(void) | |||
599 | * Global kernel interface to tell the VSP object in the primary | 599 | * Global kernel interface to tell the VSP object in the primary |
600 | * partition to reboot this partition. | 600 | * partition to reboot this partition. |
601 | */ | 601 | */ |
602 | void mf_reboot(void) | 602 | void mf_reboot(char *cmd) |
603 | { | 603 | { |
604 | printk(KERN_INFO "mf.c: Preparing to bounce...\n"); | 604 | printk(KERN_INFO "mf.c: Preparing to bounce...\n"); |
605 | signal_ce_msg_simple(0x4e, NULL); | 605 | signal_ce_msg_simple(0x4e, NULL); |
diff --git a/arch/powerpc/platforms/iseries/setup.c b/arch/powerpc/platforms/iseries/setup.c index 190891ce9cb4..127af3b0ba82 100644 --- a/arch/powerpc/platforms/iseries/setup.c +++ b/arch/powerpc/platforms/iseries/setup.c | |||
@@ -554,30 +554,6 @@ static void iSeries_show_cpuinfo(struct seq_file *m) | |||
554 | seq_printf(m, "machine\t\t: 64-bit iSeries Logical Partition\n"); | 554 | seq_printf(m, "machine\t\t: 64-bit iSeries Logical Partition\n"); |
555 | } | 555 | } |
556 | 556 | ||
557 | /* | ||
558 | * Document me. | ||
559 | */ | ||
560 | static void iSeries_restart(char *cmd) | ||
561 | { | ||
562 | mf_reboot(); | ||
563 | } | ||
564 | |||
565 | /* | ||
566 | * Document me. | ||
567 | */ | ||
568 | static void iSeries_power_off(void) | ||
569 | { | ||
570 | mf_power_off(); | ||
571 | } | ||
572 | |||
573 | /* | ||
574 | * Document me. | ||
575 | */ | ||
576 | static void iSeries_halt(void) | ||
577 | { | ||
578 | mf_power_off(); | ||
579 | } | ||
580 | |||
581 | static void __init iSeries_progress(char * st, unsigned short code) | 557 | static void __init iSeries_progress(char * st, unsigned short code) |
582 | { | 558 | { |
583 | printk("Progress: [%04x] - %s\n", (unsigned)code, st); | 559 | printk("Progress: [%04x] - %s\n", (unsigned)code, st); |
@@ -716,9 +692,9 @@ struct machdep_calls __initdata iseries_md = { | |||
716 | .get_irq = iSeries_get_irq, | 692 | .get_irq = iSeries_get_irq, |
717 | .init_early = iSeries_init_early, | 693 | .init_early = iSeries_init_early, |
718 | .pcibios_fixup = iSeries_pci_final_fixup, | 694 | .pcibios_fixup = iSeries_pci_final_fixup, |
719 | .restart = iSeries_restart, | 695 | .restart = mf_reboot, |
720 | .power_off = iSeries_power_off, | 696 | .power_off = mf_power_off, |
721 | .halt = iSeries_halt, | 697 | .halt = mf_power_off, |
722 | .get_boot_time = iSeries_get_boot_time, | 698 | .get_boot_time = iSeries_get_boot_time, |
723 | .set_rtc_time = iSeries_set_rtc_time, | 699 | .set_rtc_time = iSeries_set_rtc_time, |
724 | .get_rtc_time = iSeries_get_rtc_time, | 700 | .get_rtc_time = iSeries_get_rtc_time, |
diff --git a/include/asm-powerpc/iseries/mf.h b/include/asm-powerpc/iseries/mf.h index 335e163daaf3..89f3282df04d 100644 --- a/include/asm-powerpc/iseries/mf.h +++ b/include/asm-powerpc/iseries/mf.h | |||
@@ -41,7 +41,7 @@ extern void mf_deallocate_lp_events(HvLpIndex targetLp, HvLpEvent_Type type, | |||
41 | unsigned count, MFCompleteHandler hdlr, void *userToken); | 41 | unsigned count, MFCompleteHandler hdlr, void *userToken); |
42 | 42 | ||
43 | extern void mf_power_off(void); | 43 | extern void mf_power_off(void); |
44 | extern void mf_reboot(void); | 44 | extern void mf_reboot(char *cmd); |
45 | 45 | ||
46 | extern void mf_display_src(u32 word); | 46 | extern void mf_display_src(u32 word); |
47 | extern void mf_display_progress(u16 value); | 47 | extern void mf_display_progress(u16 value); |