From ba0cc66bedfceb36446c54cf7d4e1746ec68030a Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Mon, 9 Jul 2007 18:51:58 +0200 Subject: [PATCH] --- yaml --- r: 58262 b: refs/heads/master c: c65cc8705256ad7524c97564b4fe3ca9782bf6d1 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/sched.h | 5 +---- trunk/kernel/sched.c | 6 ++++++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 08eb425d715b..8cf86d833208 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0437e109e1841607f2988891eaa36c531c6aa6ac +refs/heads/master: c65cc8705256ad7524c97564b4fe3ca9782bf6d1 diff --git a/trunk/include/linux/sched.h b/trunk/include/linux/sched.h index 8764cda0feca..4b912e753ca0 100644 --- a/trunk/include/linux/sched.h +++ b/trunk/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/trunk/kernel/sched.c b/trunk/kernel/sched.c index 46b23f0fee24..d6624978feb2 100644 --- a/trunk/kernel/sched.c +++ b/trunk/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;