diff options
author | Rabin Vincent <rabin@rab.in> | 2008-05-11 05:55:33 +0530 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-17 10:36:58 +0200 |
commit | 95e904c7da715aa2dbfb595da66b63de37a0bb04 (patch) | |
tree | 0f6838888cffc410740b2737082101a7a7117bbb | |
parent | 066519068ad2fbe98c7f45552b1f592903a9c8c8 (diff) | |
download | op-kernel-dev-95e904c7da715aa2dbfb595da66b63de37a0bb04.zip op-kernel-dev-95e904c7da715aa2dbfb595da66b63de37a0bb04.tar.gz |
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>
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index eaf6751..0422852 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) { |