arm64: Improve parking of stopped CPUs
authorJayachandran C <jnair@caviumnetworks.com>
Mon, 17 Jun 2019 20:35:18 +0000 (23:35 +0300)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 25 Jun 2019 15:42:09 +0000 (16:42 +0100)
commitdccc9da22dedad203acea355b0e4d946b71172e5
treef2aa9c5784b49699700577770856f8c77c9a6f45
parentca9503fc9e9812aa6258e55d44edb03eb30fc46f
arm64: Improve parking of stopped CPUs

The current code puts the stopped cpus in an 'yield' instruction loop.
Using a busy loop here is unnecessary, we can use the cpu_park_loop()
function here to do a wfi/wfe.

Signed-off-by: Jayachandran C <jnair@caviumnetworks.com>
Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/smp.c