arm64: Introduce cpu_die_early
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 23 Feb 2016 10:31:40 +0000 (10:31 +0000)
committerAKASHI Takahiro <takahiro.akashi@linaro.org>
Wed, 14 Jun 2017 01:51:54 +0000 (10:51 +0900)
commit8083cfe5b47c2138fe782ef790bdd3f7e576b804
treeacb5d8357e9663f572493d0a7c266a6bb7ff7f8b
parent45a8334205e2c8c18866f41469472a54c30a8085
arm64: Introduce cpu_die_early

Or in other words, make fail_incapable_cpu() reusable.

We use fail_incapable_cpu() to kill a secondary CPU early during the
bringup, which doesn't have the system advertised capabilities.
This patch makes the routine more generic, to kill a secondary
booting CPU, getting rid of the dependency on capability struct.
This can be used by checks which are not necessarily attached to
a capability struct (e.g, cpu ASIDBits).

In that process, renames the function to cpu_die_early() to better
match its functionality. This will be moved to arch/arm64/kernel/smp.c
later.

Cc: Mark Rutland <mark.rutland@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/cpufeature.c