refscale: Correct affinity check
The current affinity check works fine until there are more reader processes than CPUs, at which point the affinity check is looking for non-existent CPUs. This commit therefore applies the same modulus to the check as is present in the set_cpus_allowed_ptr() call. Signed-off-by:Paul E. McKenney <paulmck@kernel.org> Reviewed-by:
Neeraj Upadhyay <Neeraj.Upadhyay@amd.com> Signed-off-by:
Frederic Weisbecker <frederic@kernel.org>
Loading
Please sign in to comment