diff options
author | Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> | 2006-01-17 01:14:01 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-17 02:15:26 -0500 |
commit | b142159fa5ffbad73b6927fafa5440148030f3f1 (patch) | |
tree | 12bc9f8815e2eff9b5bf5631968f7ac303a80a78 /arch/mips/kernel/reset.c | |
parent | 8f56a31ad616b13414cf764f620f75f45dac26e6 (diff) |
[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 @@ | |||
12 | #include <linux/reboot.h> | 12 | #include <linux/reboot.h> |
13 | #include <asm/reboot.h> | 13 | #include <asm/reboot.h> |
14 | 14 | ||
15 | void (*pm_power_off)(void); | ||
16 | EXPORT_SYMBOL(pm_power_off); | ||
17 | |||
15 | /* | 18 | /* |
16 | * Urgs ... Too many MIPS machines to handle this in a generic way. | 19 | * Urgs ... Too many MIPS machines to handle this in a generic way. |
17 | * So handle all using function pointers to machine specific | 20 | * So handle all using function pointers to machine specific |
@@ -33,6 +36,9 @@ void machine_halt(void) | |||
33 | 36 | ||
34 | void machine_power_off(void) | 37 | void machine_power_off(void) |
35 | { | 38 | { |
39 | if (pm_power_off) | ||
40 | pm_power_off(); | ||
41 | |||
36 | _machine_power_off(); | 42 | _machine_power_off(); |
37 | } | 43 | } |
38 | 44 | ||