]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb9b757c32ee6fc249604603916cd19ea6476917c
treefdaa32a293b6dc3df7213ceebd91892a57a7ae65
parenteb0e59408a8eab8ad81cbef4d1d10a638b0f2bbb
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