Skip to content

Commit

Permalink
sh: Kill off SH-5 enter_deep_standby() cruft.
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Jan 28, 2008
1 parent b4db3ae commit a7aa92d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions arch/sh/kernel/process_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a7aa92d

Please sign in to comment.