From 6cd712f95027f0d158aeb7548e319b0a847b1d3d Mon Sep 17 00:00:00 2001 From: Nicholas Piggin Date: Fri, 17 Dec 2021 12:17:20 +1000 Subject: core/cpu: remove POWER8 IPI loop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit POWER8 does not have to loop sending IPIs until the destination wakes up. cpu_wake() only sends IPI so that should be enough here too. This will help the next patch make a common IPI sending function. Signed-off-by: Nicholas Piggin Signed-off-by: Cédric Le Goater --- core/cpu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/cpu.c b/core/cpu.c index 6ea8de8..e5dc98a 100644 --- a/core/cpu.c +++ b/core/cpu.c @@ -609,10 +609,8 @@ static void reconfigure_idle_start(void) if (proc_gen == proc_gen_p8) { for_each_available_cpu(cpu) { - while (cpu->in_sleep || cpu->in_idle) { + if (cpu->in_sleep || cpu->in_idle) icp_kick_cpu(cpu); - cpu_relax(); - } } } else if (proc_gen == proc_gen_p9 || proc_gen == proc_gen_p10) { for_each_available_cpu(cpu) { -- cgit v1.1