diff options
author | Xunlei Pang <[email protected]> | 2015-01-19 04:49:36 +0000 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2015-01-30 19:39:16 +0100 |
commit | 16b269436b7213ebc01dcfcc9dafa8535b676ccb (patch) | |
tree | 430aa2ee5f76f7de1bfa393cd8ad36e4a09e5f45 /lib/mpi/mpiutil.c | |
parent | ff6f2d29bd31cdfa1ac494a8b26d2af8ba887d59 (diff) |
sched/deadline: Modify cpudl::free_cpus to reflect rd->online
Currently, cpudl::free_cpus contains all CPUs during init, see
cpudl_init(). When calling cpudl_find(), we have to add rd->span
to avoid selecting the cpu outside the current root domain, because
cpus_allowed cannot be depended on when performing clustered
scheduling using the cpuset, see find_later_rq().
This patch adds cpudl_set_freecpu() and cpudl_clear_freecpu() for
changing cpudl::free_cpus when doing rq_online_dl()/rq_offline_dl(),
so we can avoid the rd->span operation when calling cpudl_find()
in find_later_rq().
Signed-off-by: Xunlei Pang <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Juri Lelli <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions