1
linux/arch/mips
Wu Zhangjin fc48c41af8 MIPS: Loongson: Cleanup the halt and poweroff action
In the old source code, I have let halt and poweroff do the same action,
but in reality, they have different meanings.

As the manpage of shutdown shows:

-r     Reboot after shutdown.
-H     Halt action is to halt or drop into boot monitor on systems that support it.
-P     Halt action is to turn off the power.

and in the real world, some machines(e.g. NAS) did not provide a power
button and the shutdown works as reset, so, we need to provide a
mechanism to let the users turn off the power safely without breaking
the system, such a mechanism is "halt", which only put the system into a
dead loop or a power-save mode and print some information to the screen
to tell the users to turn off the power safely.

$ shutdown -hH now /* loongson_halt, not turn off the power */
$ shutdown -hP now /* loongson_poweroff, work as poweroff */

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Tested-by: Liu Shiwei <liushiwei@gmail.com>
Cc: Liu Shiwei <liushiwei@gmail.com>
Cc: linux-mips <linux-mips@linux-mips.org>
Patchwork: http://patchwork.linux-mips.org/patch/883/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2010-02-27 12:53:17 +01:00
..
alchemy MIPS: Alchemy: get rid of common/reset.c 2010-02-27 12:53:04 +01:00
ar7 MIPS: AR7: Implement clock API 2010-02-27 12:53:16 +01:00
bcm47xx MIPS: Nuke trailing blank lines 2010-02-27 12:53:14 +01:00
bcm63xx MIPS: Nuke trailing blank lines 2010-02-27 12:53:14 +01:00
boot MIPS: Simplify the weak annotation with __weak 2010-02-27 12:53:17 +01:00
cavium-octeon MIPS: Nuke trailing blank lines 2010-02-27 12:53:14 +01:00
cobalt MIPS: Cobalt use strlcat() for the command line arguments 2010-01-12 18:19:34 +01:00
configs MIPS: Loongson: Lemote-2F: update defconfig 2010-02-27 12:53:12 +01:00
dec MIPS: Nuke trailing blank lines 2010-02-27 12:53:14 +01:00
emma
fw MIPS: IP22: Remove an unused function 2009-12-17 01:56:56 +00:00
gt64120/wrppmc
include/asm MIPS: AR7: Implement clock API 2010-02-27 12:53:16 +01:00
jazz MIPS: Add IRQF_TIMER flag for timer interrupts 2009-11-02 12:00:02 +01:00
kernel MIPS: Nuke trailing blank lines 2010-02-27 12:53:14 +01:00
lasat MIPS: Nuke trailing blank lines 2010-02-27 12:53:14 +01:00
lib
loongson MIPS: Loongson: Cleanup the halt and poweroff action 2010-02-27 12:53:17 +01:00
math-emu MIPS: Nuke trailing blank lines 2010-02-27 12:53:14 +01:00
mipssim MIPS: Malta, PowerTV: Remove unnecessary "Linux started" 2010-01-12 18:19:36 +01:00
mm MIPS: Nuke trailing blank lines 2010-02-27 12:53:14 +01:00
mti-malta MIPS: Malta, PowerTV: Remove unnecessary "Linux started" 2010-01-12 18:19:36 +01:00
nxp MIPS: Nuke trailing blank lines 2010-02-27 12:53:14 +01:00
oprofile MIPS: Simplify the weak annotation with __weak 2010-02-27 12:53:17 +01:00
pci MIPS: Nuke trailing blank lines 2010-02-27 12:53:14 +01:00
pmc-sierra MIPS: msp71xx: remove unused prom_getcmdline() 2010-02-27 12:53:15 +01:00
power MIPS: Loongson: Change the Email address of Wu Zhangjin 2010-02-27 12:53:12 +01:00
powertv MIPS: Cleanup switches with cases that can be merged 2010-02-27 12:53:14 +01:00
rb532 MIPS: Replace all usages of CL_SIZE by COMMAND_LINE_SIZE 2009-12-17 01:56:56 +00:00
sgi-ip22 MIPS: Move several variables from .bss to .init.data 2009-12-17 01:57:27 +00:00
sgi-ip27 MIPS: Nuke trailing blank lines 2010-02-27 12:53:14 +01:00
sgi-ip32 MIPS: Cleanup switches with cases that can be merged 2010-02-27 12:53:14 +01:00
sibyte MIPS: Don't include <linux/smp_lock.h> unnecessarily. 2010-02-27 12:52:57 +01:00
sni MIPS: SNI: Correct NULL test 2010-02-10 22:15:45 +01:00
txx9 MIPS: TXx9: Cleanup builtin-cmdline processing 2010-01-12 18:19:34 +01:00
vr41xx MIPS: VR41xx: Use strlcat() for the command line arguments 2010-01-12 18:19:30 +01:00
Kconfig MIPS: AR7: Implement gpiolib 2010-02-27 12:53:16 +01:00
Kconfig.debug MIPS: Fix and enhance built-in kernel command line 2009-12-17 01:57:35 +00:00
Makefile MIPS: Loongson: arch/mips/Makefile: Add missing whitespace 2010-02-27 12:53:11 +01:00