public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* sched: add CONFIG_SMP consistency
@ 2008-10-21 18:45 henrik
  2008-10-21 19:01 ` Peter Zijlstra
  0 siblings, 1 reply; 6+ messages in thread
From: henrik @ 2008-10-21 18:45 UTC (permalink / raw)
  To: mingo; +Cc: linux-kernel, Henrik Austad

From: Henrik Austad <henrik.austad@gmail.com>

Do not declare select_task_rq as part of sched_class when CONFIG_SMP is
not set.

Signed-off-by: Henrik Austad <henrik.austad@gmail.com>
---
 include/linux/sched.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/linux/sched.h b/include/linux/sched.h
index c226c7b..9e0e33c 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -898,8 +898,9 @@ struct sched_class {
 	void (*enqueue_task) (struct rq *rq, struct task_struct *p, int wakeup);
 	void (*dequeue_task) (struct rq *rq, struct task_struct *p, int sleep);
 	void (*yield_task) (struct rq *rq);
+#ifdef CONFIG_SMP
 	int  (*select_task_rq)(struct task_struct *p, int sync);
-
+#endif
 	void (*check_preempt_curr) (struct rq *rq, struct task_struct *p, int sync);
 
 	struct task_struct * (*pick_next_task) (struct rq *rq);
-- 
1.6.0.1


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

end of thread, other threads:[~2008-10-22  8:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-21 18:45 sched: add CONFIG_SMP consistency henrik
2008-10-21 19:01 ` Peter Zijlstra
2008-10-22  7:25   ` Li Zefan
2008-10-22  7:36     ` Ingo Molnar
2008-10-22  7:56       ` Peter Zijlstra
2008-10-22  8:00       ` Henrik Austad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox