diff mbox series

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

Message ID 20201221161042.944286-3-npiggin@gmail.com
State Superseded
Headers show
Series idle synchronisation rewrite | expand

Commit Message

Nicholas Piggin Dec. 21, 2020, 4:10 p.m. UTC
POWER8 should not have to loop sending IPIs until the destination
wakes up. One should be enough.

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 cbff6d709..2c2b678ff 100644
--- a/core/cpu.c
+++ b/core/cpu.c
@@ -597,10 +597,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) {
 		for_each_available_cpu(cpu) {