sh: Kill off SH-5 enter_deep_standby() cruft.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 20 Nov 2007 06:38:50 +0000 (15:38 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 28 Jan 2008 04:18:49 +0000 (13:18 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/process_64.c

index 0c2bc61b66b3dec9a9e52e1241f82dbcbb385b40..47415671da0cbc3a8877ab7167802a4d29b20a9f 100644 (file)
@@ -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;