diff options
author | Rabin Vincent <rabin@rab.in> | 2008-05-10 20:25:33 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-06 09:19:34 -0400 |
commit | 81d41d7ece23a1c3b4bcd1604026d3a06cc4dc79 (patch) | |
tree | 17d01a974c420cd0e32b27e8afda42af8416fc93 /kernel/sched.c | |
parent | 554ec22f075d46e4363520a407d2b7eeb5dfdd43 (diff) |
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>
Diffstat (limited to 'kernel/sched.c')
-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 02a5eeedcb94..f3faec52c5ab 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -1130,6 +1130,7 @@ static enum hrtimer_restart hrtick(struct hrtimer *timer) | |||
1130 | return HRTIMER_NORESTART; | 1130 | return HRTIMER_NORESTART; |
1131 | } | 1131 | } |
1132 | 1132 | ||
1133 | #ifdef CONFIG_SMP | ||
1133 | static void hotplug_hrtick_disable(int cpu) | 1134 | static void hotplug_hrtick_disable(int cpu) |
1134 | { | 1135 | { |
1135 | struct rq *rq = cpu_rq(cpu); | 1136 | struct rq *rq = cpu_rq(cpu); |
@@ -1185,6 +1186,7 @@ static void init_hrtick(void) | |||
1185 | { | 1186 | { |
1186 | hotcpu_notifier(hotplug_hrtick, 0); | 1187 | hotcpu_notifier(hotplug_hrtick, 0); |
1187 | } | 1188 | } |
1189 | #endif /* CONFIG_SMP */ | ||
1188 | 1190 | ||
1189 | static void init_rq_hrtick(struct rq *rq) | 1191 | static void init_rq_hrtick(struct rq *rq) |
1190 | { | 1192 | { |