diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-07-09 12:51:58 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-07-09 12:51:58 -0400 |
commit | c65cc8705256ad7524c97564b4fe3ca9782bf6d1 (patch) | |
tree | f51e32d6b5ec813bdee5b623dd36f9af3967e8fd /kernel | |
parent | 0437e109e1841607f2988891eaa36c531c6aa6ac (diff) |
sched: uninline set_task_cpu()
uninline set_task_cpu(): CFS will add more code to it.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 46b23f0fee24..d6624978feb2 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -1111,6 +1111,12 @@ unsigned long weighted_cpuload(const int cpu) | |||
1111 | } | 1111 | } |
1112 | 1112 | ||
1113 | #ifdef CONFIG_SMP | 1113 | #ifdef CONFIG_SMP |
1114 | |||
1115 | void set_task_cpu(struct task_struct *p, unsigned int cpu) | ||
1116 | { | ||
1117 | task_thread_info(p)->cpu = cpu; | ||
1118 | } | ||
1119 | |||
1114 | struct migration_req { | 1120 | struct migration_req { |
1115 | struct list_head list; | 1121 | struct list_head list; |
1116 | 1122 | ||