Repository navigation
Commit db44fc0
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>1 parent 61eadef commit db44fc0
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5946 | 5946 | | |
5947 | 5947 | | |
5948 | 5948 | | |
| 5949 | + | |
| 5950 | + | |
| 5951 | + | |
5949 | 5952 | | |
5950 | 5953 | | |
5951 | 5954 | | |
5952 | 5955 | | |
5953 | 5956 | | |
5954 | | - | |
5955 | | - | |
| 5957 | + | |
5956 | 5958 | | |
5957 | 5959 | | |
5958 | 5960 | | |
| |||
0 commit comments