From: Yoichi Yuasa Date: Tue, 17 Jan 2006 06:14:01 +0000 (-0800) Subject: [PATCH] mips: add pm_power_off X-Git-Tag: v2.6.16-rc1~74 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b142159fa5ffbad73b6927fafa5440148030f3f1;p=profile%2Fivi%2Fkernel-x86-ivi.git [PATCH] mips: add pm_power_off Adds pm_power_off() to MIPS. Signed-off-by: Yoichi Yuasa Cc: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/mips/kernel/reset.c b/arch/mips/kernel/reset.c index ae2ba67..5e37df31 100644 --- a/arch/mips/kernel/reset.c +++ b/arch/mips/kernel/reset.c @@ -12,6 +12,9 @@ #include #include +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(); }