diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2011-12-19 12:11:11 -0500 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2012-01-20 18:55:05 -0500 |
commit | 3c0b2cef913c8f92b15a5a1fe7b611836f7f80bf (patch) | |
tree | 51274bccadd592591d4e3e0857047b5bd498517f /arch/arm/mach-omap1/pm.c | |
parent | dcd6c92267155e70a94b3927bce681ce74b80d1f (diff) |
ARM: OMAP1: Fix pm_idle during suspend
Commit 9ccdac3662dbf3c75e8f8851a214bdf7d365a4bd ([ARM] idle:
clean up pm_idle calling, obey hlt_counter) removed a check
for NULL pm_idle.
Replace the NULL assignment in the OMAP1 code with disable_hlt()
to be in sync with the core code and restore the intended behavior.
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/pm.c')
-rw-r--r-- | arch/arm/mach-omap1/pm.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/mach-omap1/pm.c b/arch/arm/mach-omap1/pm.c index 89ea20ca0ccc..6c6a2dc554ef 100644 --- a/arch/arm/mach-omap1/pm.c +++ b/arch/arm/mach-omap1/pm.c | |||
@@ -583,8 +583,6 @@ static void omap_pm_init_proc(void) | |||
583 | 583 | ||
584 | #endif /* DEBUG && CONFIG_PROC_FS */ | 584 | #endif /* DEBUG && CONFIG_PROC_FS */ |
585 | 585 | ||
586 | static void (*saved_idle)(void) = NULL; | ||
587 | |||
588 | /* | 586 | /* |
589 | * omap_pm_prepare - Do preliminary suspend work. | 587 | * omap_pm_prepare - Do preliminary suspend work. |
590 | * | 588 | * |
@@ -592,8 +590,7 @@ static void (*saved_idle)(void) = NULL; | |||
592 | static int omap_pm_prepare(void) | 590 | static int omap_pm_prepare(void) |
593 | { | 591 | { |
594 | /* We cannot sleep in idle until we have resumed */ | 592 | /* We cannot sleep in idle until we have resumed */ |
595 | saved_idle = pm_idle; | 593 | disable_hlt(); |
596 | pm_idle = NULL; | ||
597 | 594 | ||
598 | return 0; | 595 | return 0; |
599 | } | 596 | } |
@@ -630,7 +627,7 @@ static int omap_pm_enter(suspend_state_t state) | |||
630 | 627 | ||
631 | static void omap_pm_finish(void) | 628 | static void omap_pm_finish(void) |
632 | { | 629 | { |
633 | pm_idle = saved_idle; | 630 | enable_hlt(); |
634 | } | 631 | } |
635 | 632 | ||
636 | 633 | ||