Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e104383f authored by Glauber Costa's avatar Glauber Costa Committed by Ingo Molnar
Browse files

x86: use cpu_relax instead of rep_nop



This is done for smpboot_32.c

Signed-off-by: default avatarGlauber Costa <gcosta@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent e90009bc
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -185,7 +185,7 @@ static void __cpuinit smp_callin(void)
		 */
		 */
		if (cpu_isset(cpuid, cpu_callout_map))
		if (cpu_isset(cpuid, cpu_callout_map))
			break;
			break;
		rep_nop();
		cpu_relax();
	}
	}


	if (!time_before(jiffies, timeout)) {
	if (!time_before(jiffies, timeout)) {
@@ -242,7 +242,7 @@ static void __cpuinit start_secondary(void *unused)
	preempt_disable();
	preempt_disable();
	smp_callin();
	smp_callin();
	while (!cpu_isset(smp_processor_id(), smp_commenced_mask))
	while (!cpu_isset(smp_processor_id(), smp_commenced_mask))
		rep_nop();
		cpu_relax();
	/*
	/*
	 * Check TSC synchronization with the BP:
	 * Check TSC synchronization with the BP:
	 */
	 */