Thread (2 messages) flat view 2 messages, 2 authors, 2011-10-07
DORMANTno replies

[PATCH] ARM: PM: build sleep/suspend code for idle path also (not only suspend)

From: Russell King - ARM Linux <hidden>
Date: 2011-10-07 22:39:22
Also in: linux-omap

On Fri, Oct 07, 2011 at 03:31:26PM -0700, Kevin Hilman wrote:
Some platforms (e.g. OMAP) use the same common cpu_suspend/cpu_resume
helpers during idle as well as suspend.

Currently, if suspend is disabled (CONFIG_PM_SLEEP=n) and the platform
idle code is using the common cpu_suspend/cpu_resume functions, the
kernel will not link.

Since platform code commonly uses CONFIG_PM=y to build it's idle code,
build the common sleep/suspend code based on CONFIG_PM instead of
CONFIG_PM_SLEEP.

Signed-off-by: Kevin Hilman <redacted>
---
Applies on Russell's devel-stable branch, where the new common
suspend/resume code is queued.
See:

commit 15e0d9e37c7fe9711b60f47221c394d45553ad8c
Author: Arnd Bergmann [off-list ref]
Date:   Sat Oct 1 21:09:39 2011 +0200

    ARM: pm: let platforms select cpu_suspend support

    Support for the cpu_suspend functions is only built-in
    when CONFIG_PM_SLEEP is enabled, but omap3/4, exynos4
    and pxa always call cpu_suspend when CONFIG_PM is enabled.

    Signed-off-by: Arnd Bergmann [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help