From: Ingo Molnar Date: Mon, 9 Jul 2007 16:51:58 +0000 (+0200) Subject: sched: uninline set_task_cpu() X-Git-Tag: v2.6.23-rc1~1273 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c65cc8705256ad7524c97564b4fe3ca9782bf6d1;p=linux-2.6-omap-h63xx.git sched: uninline set_task_cpu() uninline set_task_cpu(): CFS will add more code to it. Signed-off-by: Ingo Molnar --- diff --git a/include/linux/sched.h b/include/linux/sched.h index 8764cda0fec..4b912e753ca 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1633,10 +1633,7 @@ static inline unsigned int task_cpu(const struct task_struct *p) return task_thread_info(p)->cpu; } -static inline void set_task_cpu(struct task_struct *p, unsigned int cpu) -{ - task_thread_info(p)->cpu = cpu; -} +extern void set_task_cpu(struct task_struct *p, unsigned int cpu); #else diff --git a/kernel/sched.c b/kernel/sched.c index 46b23f0fee2..d6624978feb 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -1111,6 +1111,12 @@ unsigned long weighted_cpuload(const int cpu) } #ifdef CONFIG_SMP + +void set_task_cpu(struct task_struct *p, unsigned int cpu) +{ + task_thread_info(p)->cpu = cpu; +} + struct migration_req { struct list_head list;