Re: [PATCH v2 2/3] sched/fair: Change likelyhood of nohz.nr_cpus and do stats update if its due

From: K Prateek Nayak
Date: Tue Jan 06 2026 - 00:50:28 EST


Hello Shrikanth,

On 1/6/2026 9:53 AM, Shrikanth Hegde wrote:
>> There are also nuances like the smp_mb__after_atomic() in
>
> That reminds me, need to upgrade this to smp_mb now, given atomic is gone.

Isn't cpumask_set_cpu() also an atomic op?

set_bit() has a comment stating it is a "relaxed atomic operation" in
asm-generic/bitops/instrumented-atomic.h which makes it similar to a
atomic_inc().
--
Thanks and Regards,
Prateek