summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorRabin Vincent <rabin@rab.in>2008-05-11 05:55:33 +0530
committerIngo Molnar <mingo@elte.hu>2008-06-17 10:36:58 +0200
commit95e904c7da715aa2dbfb595da66b63de37a0bb04 (patch)
tree0f6838888cffc410740b2737082101a7a7117bbb /kernel
parent066519068ad2fbe98c7f45552b1f592903a9c8c8 (diff)
downloadlinux-95e904c7da715aa2dbfb595da66b63de37a0bb04.tar.bz2
sched: fix defined-but-unused warning
Fix this warning, which appears with !CONFIG_SMP: kernel/sched.c:1216: warning: `init_hrtick' defined but not used Signed-off-by: Rabin Vincent <rabin@rab.in> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index eaf6751e7612..04228524d160 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1127,6 +1127,7 @@ static enum hrtimer_restart hrtick(struct hrtimer *timer)
return HRTIMER_NORESTART;
}
+#ifdef CONFIG_SMP
static void hotplug_hrtick_disable(int cpu)
{
struct rq *rq = cpu_rq(cpu);
@@ -1182,6 +1183,7 @@ static void init_hrtick(void)
{
hotcpu_notifier(hotplug_hrtick, 0);
}
+#endif /* CONFIG_SMP */
static void init_rq_hrtick(struct rq *rq)
{