diff options
Diffstat (limited to 'arch/avr32/kernel/process.c')
-rw-r--r-- | arch/avr32/kernel/process.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/avr32/kernel/process.c b/arch/avr32/kernel/process.c index 7f4af0b1e111..6cf9df176274 100644 --- a/arch/avr32/kernel/process.c +++ b/arch/avr32/kernel/process.c | |||
@@ -18,11 +18,11 @@ | |||
18 | #include <asm/sysreg.h> | 18 | #include <asm/sysreg.h> |
19 | #include <asm/ocd.h> | 19 | #include <asm/ocd.h> |
20 | 20 | ||
21 | #include <asm/arch/pm.h> | ||
22 | |||
21 | void (*pm_power_off)(void) = NULL; | 23 | void (*pm_power_off)(void) = NULL; |
22 | EXPORT_SYMBOL(pm_power_off); | 24 | EXPORT_SYMBOL(pm_power_off); |
23 | 25 | ||
24 | extern void cpu_idle_sleep(void); | ||
25 | |||
26 | /* | 26 | /* |
27 | * This file handles the architecture-dependent parts of process handling.. | 27 | * This file handles the architecture-dependent parts of process handling.. |
28 | */ | 28 | */ |
@@ -54,6 +54,8 @@ void machine_halt(void) | |||
54 | 54 | ||
55 | void machine_power_off(void) | 55 | void machine_power_off(void) |
56 | { | 56 | { |
57 | if (pm_power_off) | ||
58 | pm_power_off(); | ||
57 | } | 59 | } |
58 | 60 | ||
59 | void machine_restart(char *cmd) | 61 | void machine_restart(char *cmd) |