PM / sleep: Make suspend-to-idle-specific code depend on CONFIG_SUSPEND
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 15 May 2015 23:38:15 +0000 (01:38 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 19 May 2015 00:44:24 +0000 (02:44 +0200)
commit87e9b9f1d86c2ee9a10c2a4186a72d0af4cc963e
treed4967e50be04ffa2de19025b6c51f92284755a01
parent671767360db8fdd1f082d15fb4b0107c1bb94a0b
PM / sleep: Make suspend-to-idle-specific code depend on CONFIG_SUSPEND

Since idle_should_freeze() is defined to always return 'false'
for CONFIG_SUSPEND unset, all of the code depending on it in
cpuidle_idle_call() is not necessary in that case.

Make that code depend on CONFIG_SUSPEND too to avoid building it
when it is not going to be used.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
drivers/cpuidle/cpuidle.c
include/linux/cpuidle.h
include/linux/tick.h
kernel/time/tick-common.c