]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sched: fix defined-but-unused warning
authorRabin Vincent <rabin@rab.in>
Sun, 11 May 2008 00:25:33 +0000 (05:55 +0530)
committerIngo Molnar <mingo@elte.hu>
Fri, 6 Jun 2008 13:19:34 +0000 (15:19 +0200)
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>
kernel/sched.c

index 02a5eeedcb94d4a918e936fc16301821ca28c80f..f3faec52c5abab78f6ccf62a2d63f4aa86b67099 100644 (file)
@@ -1130,6 +1130,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);
@@ -1185,6 +1186,7 @@ static void init_hrtick(void)
 {
        hotcpu_notifier(hotplug_hrtick, 0);
 }
+#endif /* CONFIG_SMP */
 
 static void init_rq_hrtick(struct rq *rq)
 {