kthread: Switch to cpu_possible_mask
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 27 May 2020 14:29:08 +0000 (16:29 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 15 Jun 2020 12:10:03 +0000 (14:10 +0200)
commit043eb8e1051143a24811e6f35c276e35ae8247b6
tree19eaec0b052cdcaba74b1a48fcff7085d6d1a03d
parent461daba06bdcb9c7a3f92b9bbd110e1f7d093ffc
kthread: Switch to cpu_possible_mask

Next patch will switch unbound kernel threads mask to
housekeeping_cpumask(), a subset of cpu_possible_mask. So in order to
ease bisection, lets first switch kthreads default affinity from
cpu_all_mask to cpu_possible_mask.

It looks safe to do so as cpu_possible_mask seem to be initialized
at setup_arch() time, way before kthreadd is created.

Suggested-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200527142909.23372-2-frederic@kernel.org
kernel/kthread.c