aboutsummaryrefslogtreecommitdiffstats
path: root/arch/avr32/kernel/process.c
diff options
context:
space:
mode:
authorPeter Ma <peterma@mediamatech.com>2008-04-19 03:24:25 -0400
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2008-04-19 20:40:11 -0400
commited3fa7c9510cde67d232299cab8052ff50a08285 (patch)
treebf6a1ed58dc7f64501f7e471d8952fd5ab393729 /arch/avr32/kernel/process.c
parent29a0c39386a4c33af21f1d92ebce277a7535ec7e (diff)
avr32: Add hardware power-down function call
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>
Diffstat (limited to 'arch/avr32/kernel/process.c')
-rw-r--r--arch/avr32/kernel/process.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/avr32/kernel/process.c b/arch/avr32/kernel/process.c
index 3de115462d7b..6cf9df176274 100644
--- a/arch/avr32/kernel/process.c
+++ b/arch/avr32/kernel/process.c
@@ -54,6 +54,8 @@ void machine_halt(void)
54 54
55void machine_power_off(void) 55void machine_power_off(void)
56{ 56{
57 if (pm_power_off)
58 pm_power_off();
57} 59}
58 60
59void machine_restart(char *cmd) 61void machine_restart(char *cmd)