summaryrefslogtreecommitdiff
path: root/arch/arm64/kernel/cpufeature.c
diff options
context:
space:
mode:
authorSuzuki K Poulose <suzuki.poulose@arm.com>2016-02-23 10:31:39 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2016-02-24 17:17:44 +0000
commitc4bc34d20273db698c51951a1951dba0a722e162 (patch)
tree2c453a2ceef319fab387415016f9c7cb6039f979 /arch/arm64/kernel/cpufeature.c
parent2b5fe07a78a09a32002642b8a823428ade611f16 (diff)
downloadlwn-c4bc34d20273db698c51951a1951dba0a722e162.tar.gz
lwn-c4bc34d20273db698c51951a1951dba0a722e162.zip
arm64: Add a helper for parking CPUs in a loop
Adds a routine which can be used to park CPUs (spinning in kernel) when they can't be killed. 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>
Diffstat (limited to 'arch/arm64/kernel/cpufeature.c')
-rw-r--r--arch/arm64/kernel/cpufeature.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index 7566cad9fa1d..99f0c5ce5758 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -890,10 +890,7 @@ static void fail_incapable_cpu(char *cap_type,
/* Check if we can park ourselves */
if (cpu_ops[cpu] && cpu_ops[cpu]->cpu_die)
cpu_ops[cpu]->cpu_die(cpu);
- asm(
- "1: wfe\n"
- " wfi\n"
- " b 1b");
+ cpu_park_loop();
}
/*