All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched/fair: Remove idle_balance() declaration in sched.h
@ 2014-02-11 15:01 Daniel Lezcano
  2014-02-11 15:11 ` Peter Zijlstra
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Lezcano @ 2014-02-11 15:01 UTC (permalink / raw)
  To: mingo, peterz; +Cc: linux-kernel

The idle_balance() function is called within a #ifdef CONFIG_SMP section.

Remove its declaration in sched.h for !CONFIG_SMP because it is pointless.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
 kernel/sched/sched.h |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 1bf34c2..0eda78b 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -1168,12 +1168,6 @@ extern int idle_balance(struct rq *this_rq);
 extern void idle_enter_fair(struct rq *this_rq);
 extern void idle_exit_fair(struct rq *this_rq);
 
-#else	/* CONFIG_SMP */
-
-static inline void idle_balance(int cpu, struct rq *rq)
-{
-}
-
 #endif
 
 extern void sysrq_sched_debug_show(void);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-02-21 21:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-11 15:01 [PATCH] sched/fair: Remove idle_balance() declaration in sched.h Daniel Lezcano
2014-02-11 15:11 ` Peter Zijlstra
2014-02-11 15:33   ` Daniel Lezcano
2014-02-11 15:46     ` Peter Zijlstra
2014-02-11 15:48       ` Daniel Lezcano
2014-02-21 21:30   ` [tip:sched/core] " tip-bot for Peter Zijlstra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.