Skip to content
Commit 7b7425a9 authored by Valentin Schneider's avatar Valentin Schneider Committed by Qais Yousef
Browse files

arm64: smp: Prevent hotplugging the last AArch32-able CPU



EL0 AArch32 tasks are now sigkilled when they can't run on any
compatible CPU, either because there aren't any left (hotplug) or
because they aren't allowed to run on those left (task affinity).

However, it has been deemed valuable to prevent the loss of
functionality resulting in offlining the last AArch32-compatible CPU.

Add arch-specific hook in _cpu_down() that allows checking whether we
can offline a cpu or not and use that hook to veto offlining the last
AArch32 CPU.

Signed-off-by: default avatarValentin Schneider <valentin.schneider@arm.com>
[Qais: Reworked to use a arch hook and moved the code to arch/arm64.
Added handling of offlining a cpu due to suspend.]
Signed-off-by: Qais Yousef's avatarQais Yousef <qais.yousef@arm.com>
Change-Id: Ibc77e948a118248c7899d97b64194a934ddbf527
parent c5328d62
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment