diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-11-04 20:48:36 +0100 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-02-15 10:32:51 -0600 |
commit | 458ac7f27866be86d469fd18db8ae54afc791200 (patch) | |
tree | 6bb2a0df68e155371b5408394f313d5a99070aa1 /kernel/sched.c | |
parent | ca343a04659f9f10ba74424d4e8115148e318e3d (diff) |
sched-clear-pf-thread-bound-on-fallback-rq.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 51c0ad657663..81b340df601e 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -2570,7 +2570,12 @@ static int select_fallback_rq(int cpu, struct task_struct *p) printk(KERN_INFO "process %d (%s) no longer affine to cpu%d\n", task_pid_nr(p), p->comm, cpu); } - + /* + * Clear PF_THREAD_BOUND, otherwise we wreckage + * migrate_disable/enable. See optimization for + * PF_THREAD_BOUND tasks there. + */ + p->flags &= ~PF_THREAD_BOUND; return dest_cpu; } |