cpumask: Introduce DYING mask
authorPeter Zijlstra <peterz@infradead.org>
Tue, 19 Jan 2021 17:43:45 +0000 (18:43 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 16 Apr 2021 15:06:32 +0000 (17:06 +0200)
commite40f74c535b8a0ecf3ef0388b51a34cdadb34fb5
treefdaa32a293b6dc3df7213ceebd91892a57a7ae65
parentb02a4fd8148f655095d9e3d6eddd8f0042bcc27c
cpumask: Introduce DYING mask

Introduce a cpumask that indicates (for each CPU) what direction the
CPU hotplug is currently going. Notably, it tracks rollbacks. Eg. when
an up fails and we do a roll-back down, it will accurately reflect the
direction.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Link: https://lkml.kernel.org/r/20210310150109.151441252@infradead.org
include/linux/cpumask.h
kernel/cpu.c