aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c6
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
1115void set_task_cpu(struct task_struct *p, unsigned int cpu)
1116{
1117 task_thread_info(p)->cpu = cpu;
1118}
1119
1114struct migration_req { 1120struct migration_req {
1115 struct list_head list; 1121 struct list_head list;
1116 1122