Skip to content

Commit

Permalink
avr32: Add hardware power-down function call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Ma authored and Haavard Skinnemoen committed Apr 20, 2008
1 parent 29a0c39 commit ed3fa7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/avr32/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ed3fa7c

Please sign in to comment.