Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77746
b: refs/heads/master
c: a7aa92d
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Jan 28, 2008
1 parent c82e28a commit 51aaf1d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b4db3aec8351c78df77bbd95f1951a4dd0246853
refs/heads/master: a7aa92d1b499a3ad67b36137445ecb1411a4533b
16 changes: 14 additions & 2 deletions trunk/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 51aaf1d

Please sign in to comment.