Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c2eb5090ee531a50533ba9e739071c21f98a5a77
Commit:     c2eb5090ee531a50533ba9e739071c21f98a5a77
Parent:     01cb087e747538d6a831c3ab370a1e1fd4538d5c
Author:     Haavard Skinnemoen <[EMAIL PROTECTED]>
AuthorDate: Mon Dec 4 12:01:36 2006 +0100
Committer:  Haavard Skinnemoen <[EMAIL PROTECTED]>
CommitDate: Fri Dec 8 13:06:23 2006 +0100

    [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 <[EMAIL PROTECTED]>
---
 arch/avr32/kernel/process.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/avr32/kernel/process.c b/arch/avr32/kernel/process.c
index 317dc50..0b43259 100644
--- a/arch/avr32/kernel/process.c
+++ b/arch/avr32/kernel/process.c
@@ -38,6 +38,13 @@ void cpu_idle(void)
 
 void machine_halt(void)
 {
+       /*
+        * Enter Stop mode. The 32 kHz oscillator will keep running so
+        * the RTC will keep the time properly and the system will
+        * boot quickly.
+        */
+       asm volatile("sleep 3\n\t"
+                    "sub pc, -2");
 }
 
 void machine_power_off(void)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to