OSDN Git Service

cpu/hotplug: CPUHP_BRINGUP_CPU failure exception
authorVincent Donnefort <vincent.donnefort@arm.com>
Tue, 16 Feb 2021 10:35:05 +0000 (10:35 +0000)
committerIngo Molnar <mingo@kernel.org>
Sat, 6 Mar 2021 11:40:22 +0000 (12:40 +0100)
commit62f250694092dd5fef9900dc3126f07110bf9d48
tree8828fd231d7d4ed6052e20174732c2e73fb52273
parent3ae70c251f344976428d1f6ee61ea7b4e170fec3
cpu/hotplug: CPUHP_BRINGUP_CPU failure exception

The atomic states (between CPUHP_AP_IDLE_DEAD and CPUHP_AP_ONLINE) are
triggered by the CPUHP_BRINGUP_CPU step. If the latter fails, no atomic
state can be rolled back.

DEAD callbacks too can't fail and disallow recovery. As a consequence,
during hotunplug, the fail injection interface should prohibit all states
from CPUHP_BRINGUP_CPU to CPUHP_ONLINE.

Signed-off-by: Vincent Donnefort <vincent.donnefort@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lkml.kernel.org/r/20210216103506.416286-3-vincent.donnefort@arm.com
kernel/cpu.c