mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
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>
This commit is contained in:
parent
ca9503fc9e
commit
dccc9da22d
1 changed files with 1 additions and 3 deletions
|
@ -850,9 +850,7 @@ static void ipi_cpu_stop(unsigned int cpu)
|
|||
|
||||
local_daif_mask();
|
||||
sdei_mask_local_cpu();
|
||||
|
||||
while (1)
|
||||
cpu_relax();
|
||||
cpu_park_loop();
|
||||
}
|
||||
|
||||
#ifdef CONFIG_KEXEC_CORE
|
||||
|
|
Loading…
Reference in a new issue