diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-11-04 20:48:36 +0100 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2011-12-28 16:25:41 -0600 |
commit | 932bb094b41d4cdf6e2342fff68000c055a7af38 (patch) | |
tree | 6560a8f5348a8572aee4b1a8ffbd3e32d7ea1a01 | |
parent | 4cd74aaa99402285191786f3ba79e658eb1436d8 (diff) |
sched-clear-pf-thread-bound-on-fallback-rq.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-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; } |