halt vs halt -p

Jake Moilanen moilanen at austin.ibm.com
Thu Feb 5 07:19:05 EST 2004


Maybe I don't know the history, but why do we power-off on a 'halt'?
According to the man page, we shouldn't power-off unless it's a 'halt
-p' or a 'poweroff'.

I checked x86 and it doesn't do anything on a halt.  I put a patch below
of what I would have expected the code to look like.

Thanks,
Jake

  diff -Nru a/arch/ppc64/kernel/iSeries_setup.c
b/arch/ppc64/kernel/iSeries_setup.c
--- a/arch/ppc64/kernel/iSeries_setup.c Wed Feb  4 13:37:46 2004
+++ b/arch/ppc64/kernel/iSeries_setup.c Wed Feb  4 13:37:46 2004
@@ -786,7 +786,6 @@
  */
 void iSeries_halt(void)
 {
-       mf_powerOff();
 }

 /* JDH Hack */
diff -Nru a/arch/ppc64/kernel/rtas.c b/arch/ppc64/kernel/rtas.c
--- a/arch/ppc64/kernel/rtas.c  Wed Feb  4 13:37:46 2004
+++ b/arch/ppc64/kernel/rtas.c  Wed Feb  4 13:37:46 2004
@@ -417,7 +417,6 @@
 {
        if (rtas_firmware_flash_list.next)
                rtas_flash_bypass_warning();
-        rtas_power_off();
 }

 unsigned long rtas_rmo_buf = 0;


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list