[AVR32] Put the chip in "stop" mode when halting the system
commitc2eb5090ee531a50533ba9e739071c21f98a5a77
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Mon, 4 Dec 2006 11:01:36 +0000 (4 12:01 +0100)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Fri, 8 Dec 2006 12:06:23 +0000 (8 13:06 +0100)
tree921853eb78d2a2ab581fd989c3b3615948ad8a65
parent01cb087e747538d6a831c3ab370a1e1fd4538d5c
[AVR32] Put the chip in "stop" mode when halting the system

Make machine_halt() execute a sleep instruction to put the chip in
"stop" mode when the system is halted. This switches off all clocks
except the 32 kHz oscillator, which is needed for the RTC to keep
ticking.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
arch/avr32/kernel/process.c