Skip to content

Commit

Permalink
[ARM] 2874/1: S3C2410 - add cpu_init() call after sleep wakeup
Browse files Browse the repository at this point in the history
Patch from Ben Dooks

The power management sleep code needs to call cpu_init()
to restore the cpu state after the system resumes from
suspend. Also clear off an un-necessary comment.
Thanks to Dimitry Andric for reporting the bug and
for rmk for pointing out the cause.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Ben Dooks authored and Russell King committed Sep 3, 2005
1 parent f36598a commit 9bed07d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/arm/mach-s3c2410/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,14 +585,16 @@ static int s3c2410_pm_enter(suspend_state_t state)

s3c2410_pm_check_store();

// need to make some form of time-delta

/* send the cpu to sleep... */

__raw_writel(0x00, S3C2410_CLKCON); /* turn off clocks over sleep */

s3c2410_cpu_suspend(regs_save);

/* restore the cpu state */

cpu_init();

/* unset the return-from-sleep flag, to ensure reset */

tmp = __raw_readl(S3C2410_GSTATUS2);
Expand Down

0 comments on commit 9bed07d

Please sign in to comment.