Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258242
b: refs/heads/master
c: 34c79de
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Jun 24, 2011
1 parent 5b702e1 commit 6b7ed55
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 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: 14cd8fd574bce1cfbe510ccb1f73c7c1024d770f
refs/heads/master: 34c79de6b2ea5bc5734d970851fb966b49d55a17
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-sa1100/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <asm/system.h>
#include <asm/mach/time.h>

extern void sa1100_cpu_suspend(long);
extern void sa1100_finish_suspend(unsigned long);

#define SAVE(x) sleep_save[SLEEP_SAVE_##x] = x
#define RESTORE(x) x = sleep_save[SLEEP_SAVE_##x]
Expand Down Expand Up @@ -75,7 +75,7 @@ static int sa11x0_pm_enter(suspend_state_t state)
PSPR = virt_to_phys(cpu_resume);

/* go zzz */
sa1100_cpu_suspend(PLAT_PHYS_OFFSET - PAGE_OFFSET);
cpu_suspend(0, PHYS_OFFSET - PAGE_OFFSET, 0, sa1100_finish_suspend);

/*
* Ensure not to come back here if it wasn't intended
Expand Down
11 changes: 2 additions & 9 deletions trunk/arch/arm/mach-sa1100/sleep.S
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,13 @@

.text
/*
* sa1100_cpu_suspend()
* sa1100_finish_suspend()
*
* Causes sa11x0 to enter sleep state
*
*/

ENTRY(sa1100_cpu_suspend)
stmfd sp!, {r4 - r12, lr} @ save registers on stack
mov r1, r0
adr r3, BSYM(sa1100_finish_suspend)
bl cpu_suspend
ldmfd sp!, {r4 - r12, pc} @ return to caller

sa1100_finish_suspend:
ENTRY(sa1100_finish_suspend)
@ disable clock switching
mcr p15, 0, r1, c15, c2, 2

Expand Down

0 comments on commit 6b7ed55

Please sign in to comment.