Re: [PATCH] sched: simplify is_cpu_allowed() code

From: Peter Zijlstra
Date: Tue May 18 2021 - 09:29:33 EST


On Tue, May 18, 2021 at 08:54:46PM +0800, Yejune Deng wrote:
> Combine multiple if statements that return the same value.

This patch is not a nop; You now deny cpu_dying() for everyone, while we
explicitly allow it for kthread_is_per_cpu().