commit | db44fc017d5989302713ab4e7f9e922b648f4b59 | [log] [tgz] |
---|---|---|
author | Yong Zhang <yong.zhang0@gmail.com> | Mon May 09 22:07:05 2011 +0800 |
committer | Ingo Molnar <mingo@elte.hu> | Mon May 16 11:01:18 2011 +0200 |
tree | a6b8830b580fe5ebf7b0ff2f271c59173b15bc9b | |
parent | 61eadef6a9bde9ea62fda724a9cb501ce9bc925a [diff] |
sched: Avoid going ahead if ->cpus_allowed is not changed If cpumask_equal(&p->cpus_allowed, new_mask) is true, seems there is no reason to prevent set_cpus_allowed_ptr() return directly. Signed-off-by: Yong Zhang <yong.zhang0@gmail.com> Acked-by: Hillf Danton <dhillf@gmail.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/20110509140705.GA2219@zhy Signed-off-by: Ingo Molnar <mingo@elte.hu>