Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a7aa92d1b499a3ad67b36137445ecb1411a4533b
Commit:     a7aa92d1b499a3ad67b36137445ecb1411a4533b
Parent:     b4db3aec8351c78df77bbd95f1951a4dd0246853
Author:     Paul Mundt <[EMAIL PROTECTED]>
AuthorDate: Tue Nov 20 15:38:50 2007 +0900
Committer:  Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 13:18:49 2008 +0900

    sh: Kill off SH-5 enter_deep_standby() cruft.
    
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
---
 arch/sh/kernel/process_64.c |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/arch/sh/kernel/process_64.c b/arch/sh/kernel/process_64.c
index 0c2bc61..4741567 100644
--- a/arch/sh/kernel/process_64.c
+++ b/arch/sh/kernel/process_64.c
@@ -27,6 +27,7 @@
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/proc_fs.h>
+#include <linux/io.h>
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
 
@@ -106,9 +107,20 @@ void machine_halt(void)
 
 void machine_power_off(void)
 {
-       extern void enter_deep_standby(void);
+#if 0
+       /* Disable watchdog timer */
+       ctrl_outl(0xa5000000, WTCSR);
+       /* Configure deep standby on sleep */
+       ctrl_outl(0x03, STBCR);
+#endif
+
+       __asm__ __volatile__ (
+               "sleep\n\t"
+               "synci\n\t"
+               "nop;nop;nop;nop\n\t"
+       );
 
-       enter_deep_standby();
+       panic("Unexpected wakeup!\n");
 }
 
 void (*pm_power_off)(void) = machine_power_off;
-
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