PM: Make sysrq-o be available for CONFIG_PM unset
authorRafael J. Wysocki <rjw@sisk.pl>
Fri, 13 Jan 2012 23:33:03 +0000 (00:33 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 13 Jan 2012 23:33:03 +0000 (00:33 +0100)
commitdae5cbc2440b1d21a15715d0f1fb20f632dd38ee
tree7cfb0b0cddcaff333bef271c54406bbdc505a75b
parent96e80a7851b44f3decaac0625665cd64e550b71d
PM: Make sysrq-o be available for CONFIG_PM unset

After commit 1eb208aea3179dd2fc0cdeea45ef869d75b4fe70, "PM: Make
CONFIG_PM depend on (CONFIG_PM_SLEEP || CONFIG_PM_RUNTIME)", the
files under kernel/power are not built unless CONFIG_PM_SLEEP or
CONFIG_PM_RUNTIME is set.  In particular, this causes
kernel/power/poweroff.c to be omitted, even though it should be
compiled, because CONFIG_MAGIC_SYSRQ is set.

Fix the problem by causing kernel/power/Makefile to be processed
for CONFIG_PM unset too.

Reported-and-tested-by: Phil Oester <kernel@linuxace.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
kernel/Makefile