projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0665190
)
sched: fix defined-but-unused warning
author
Rabin Vincent
<
[email protected]
>
Sun, 11 May 2008 00:25:33 +0000
(
05:55
+0530)
committer
Ingo Molnar
<
[email protected]
>
Tue, 17 Jun 2008 08:36:58 +0000
(10:36 +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 <
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
Signed-off-by: Thomas Gleixner <
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
kernel/sched.c
patch
|
blob
|
history
diff --git
a/kernel/sched.c
b/kernel/sched.c
index eaf6751e7612cbc5167865c8c1e4e929ff32ca5a..04228524d160e3f45e718377b9c0a77f1cf98405 100644
(file)
--- 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)
{