mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 14:50:19 +00:00
[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>
This commit is contained in:
parent
8f56a31ad6
commit
b142159fa5
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user