Build fix for UP. --- kernel/sched_bfs.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) Index: linux-2.6.31/kernel/sched_bfs.c =================================================================== --- linux-2.6.31.orig/kernel/sched_bfs.c 2009-09-22 19:39:20.389104861 +1000 +++ linux-2.6.31/kernel/sched_bfs.c 2009-09-22 19:39:27.129979331 +1000 @@ -613,6 +613,16 @@ static int suitable_idle_cpus(struct tas return (cpus_intersects(p->cpus_allowed, grq.cpu_idle_map)); } +static inline void resched_suitable_idle(struct task_struct *p) +{ + cpumask_t tmp; + + cpus_and(tmp, p->cpus_allowed, grq.cpu_idle_map); + + if (!cpus_empty(tmp)) + wake_up_idle_cpu(first_cpu(tmp)); +} + #else /* CONFIG_SMP */ static inline void inc_qnr(void) { @@ -640,6 +650,10 @@ static int suitable_idle_cpus(struct tas { return 0; } + +static inline void resched_suitable_idle(struct task_struct *p) +{ +} #endif /* CONFIG_SMP */ /* @@ -2219,16 +2233,6 @@ out: return edt; } -static inline void resched_suitable_idle(struct task_struct *p) -{ - cpumask_t tmp; - - cpus_and(tmp, p->cpus_allowed, grq.cpu_idle_map); - - if (!cpus_empty(tmp)) - wake_up_idle_cpu(first_cpu(tmp)); -} - /* * Print scheduling while atomic bug: */