diff options
author | Bing Huang <huangbing@kylinos.cn> | 2022-07-23 05:36:09 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-08-03 19:17:33 +0200 |
commit | 18c31c9711a90b48a77b78afb65012d9feec444c (patch) | |
tree | cf1a88e92a3bae24c4ff4791637db399caaeab78 /lib/bitmap.c | |
parent | d985ee9f449aafe45397ae1cf8887e9ac91d2f95 (diff) |
sched/fair: Make per-cpu cpumasks static
The load_balance_mask and select_rq_mask percpu variables are only used in
kernel/sched/fair.c.
Make them static and move their allocation into init_sched_fair_class().
Replace kzalloc_node() with zalloc_cpumask_var_node() to get rid of the
CONFIG_CPUMASK_OFFSTACK #ifdef and to align with per-cpu cpumask
allocation for RT (local_cpu_mask in init_sched_rt_class()) and DL
class (local_cpu_mask_dl in init_sched_dl_class()).
[ mingo: Tidied up changelog & touched up the code. ]
Signed-off-by: Bing Huang <huangbing@kylinos.cn>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20220722213609.3901-1-huangbing775@126.com
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions