]> err.no Git - linux-2.6/commitdiff
[PATCH] mips: add pm_power_off
authorYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Tue, 17 Jan 2006 06:14:01 +0000 (22:14 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 17 Jan 2006 07:15:26 +0000 (23:15 -0800)
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>
arch/mips/kernel/reset.c

index ae2ba67b7ef61f1054f8f5f19f625d3f78b5f6ed..5e37df3111ad4b33a98d33a235a5669940b9d346 100644 (file)
@@ -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();
 }