Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sched_ext: idle: use assign_cpu() to update the idle cpumask

Use the assign_cpu() helper to set or clear the CPU in the idle mask,
based on the idle condition.

Acked-by: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Andrea Righi and committed by
Tejun Heo
9cf9acee bc3a116a

+1 -4
+1 -4
kernel/sched/ext.c
··· 3654 3654 return; 3655 3655 } 3656 3656 3657 - if (idle) 3658 - cpumask_set_cpu(cpu, idle_masks.cpu); 3659 - else 3660 - cpumask_clear_cpu(cpu, idle_masks.cpu); 3657 + assign_cpu(cpu, idle_masks.cpu, idle); 3661 3658 3662 3659 #ifdef CONFIG_SCHED_SMT 3663 3660 if (sched_smt_active()) {