diff mbox series

[v2,2/6] core/cpu: remove POWER8 IPI loop

Message ID 20211217021724.709370-3-npiggin@gmail.com
State Accepted
Headers show
Series idle synchronisation improvements | expand

Commit Message

Nicholas Piggin Dec. 17, 2021, 2:17 a.m. UTC
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 <npiggin@gmail.com>
---
 core/cpu.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/core/cpu.c b/core/cpu.c
index 1371cd34e..20b3f6af3 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) {