projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29a0c39
)
avr32: Add hardware power-down function call
author
Peter Ma
<peterma@mediamatech.com>
Sat, 19 Apr 2008 07:24:25 +0000
(
00:24
-0700)
committer
Haavard Skinnemoen
<haavard.skinnemoen@atmel.com>
Sun, 20 Apr 2008 00:40:11 +0000
(20:40 -0400)
This patch adds in the indirect call to pm_power_off(), as is done in
other architectures (e.g. ARM).
Tested on NGW100, with custom board with GPIO control over main DC
power.
Signed-off-by: Peter Ma <pma@mediamatech.com>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
arch/avr32/kernel/process.c
patch
|
blob
|
history
diff --git
a/arch/avr32/kernel/process.c
b/arch/avr32/kernel/process.c
index 3de115462d7bd8ca9405d942a29713e8abe424fc..6cf9df1762743a29813db51b5d82d5ba8f6acedf 100644
(file)
--- a/
arch/avr32/kernel/process.c
+++ b/
arch/avr32/kernel/process.c
@@
-54,6
+54,8
@@
void machine_halt(void)
void machine_power_off(void)
{
+ if (pm_power_off)
+ pm_power_off();
}
void machine_restart(char *cmd)