summaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-05-16 01:38:15 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-05-19 02:44:24 +0200
commit87e9b9f1d86c2ee9a10c2a4186a72d0af4cc963e (patch)
treed4967e50be04ffa2de19025b6c51f92284755a01 /kernel/time
parent671767360db8fdd1f082d15fb4b0107c1bb94a0b (diff)
downloadop-kernel-dev-87e9b9f1d86c2ee9a10c2a4186a72d0af4cc963e.zip
op-kernel-dev-87e9b9f1d86c2ee9a10c2a4186a72d0af4cc963e.tar.gz
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>
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/tick-common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/time/tick-common.c b/kernel/time/tick-common.c
index 80c0430..5150846 100644
--- a/kernel/time/tick-common.c
+++ b/kernel/time/tick-common.c
@@ -441,6 +441,7 @@ void tick_resume(void)
tick_resume_local();
}
+#ifdef CONFIG_SUSPEND
static DEFINE_RAW_SPINLOCK(tick_freeze_lock);
static unsigned int tick_freeze_depth;
@@ -494,6 +495,7 @@ void tick_unfreeze(void)
raw_spin_unlock(&tick_freeze_lock);
}
+#endif /* CONFIG_SUSPEND */
/**
* tick_init - initialize the tick control
OpenPOWER on IntegriCloud