diff options
author | Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> | 2006-01-17 07:14:01 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-17 08:15:26 +0100 |
commit | b142159fa5ffbad73b6927fafa5440148030f3f1 (patch) | |
tree | 12bc9f8815e2eff9b5bf5631968f7ac303a80a78 /arch/mips/kernel/reset.c | |
parent | [PATCH] drivers/char/esp.c spinlock fix (diff) | |
download | linux-b142159fa5ffbad73b6927fafa5440148030f3f1.tar.xz linux-b142159fa5ffbad73b6927fafa5440148030f3f1.zip |
[PATCH] mips: add pm_power_off
Adds pm_power_off() to MIPS.
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/mips/kernel/reset.c')
-rw-r--r-- | arch/mips/kernel/reset.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/kernel/reset.c b/arch/mips/kernel/reset.c index ae2ba67b7ef6..5e37df3111ad 100644 --- a/arch/mips/kernel/reset.c +++ b/arch/mips/kernel/reset.c @@ -12,6 +12,9 @@ #include <linux/reboot.h> #include <asm/reboot.h> +void (*pm_power_off)(void); +EXPORT_SYMBOL(pm_power_off); + /* * Urgs ... Too many MIPS machines to handle this in a generic way. * So handle all using function pointers to machine specific @@ -33,6 +36,9 @@ void machine_halt(void) void machine_power_off(void) { + if (pm_power_off) + pm_power_off(); + _machine_power_off(); } |