Skip to content

Commit

Permalink
[PATCH] mips: add pm_power_off
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yoichi Yuasa authored and Linus Torvalds committed Jan 17, 2006
1 parent 8f56a31 commit b142159
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/mips/kernel/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -33,6 +36,9 @@ void machine_halt(void)

void machine_power_off(void)
{
if (pm_power_off)
pm_power_off();

_machine_power_off();
}

0 comments on commit b142159

Please sign in to comment.