diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-03-03 12:13:14 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:57 -0400 |
commit | e104383fbf26570968cbf060955f67cd5378300a (patch) | |
tree | 044ab3ef8d030a92eb55d76bfd72d7688a2ae4b8 | |
parent | e90009bcc1137c51d677262417f16c00ad2ce9a9 (diff) |
x86: use cpu_relax instead of rep_nop
This is done for smpboot_32.c
Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/kernel/smpboot_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/smpboot_32.c b/arch/x86/kernel/smpboot_32.c index ee826594aa03..2dd95bae2b96 100644 --- a/arch/x86/kernel/smpboot_32.c +++ b/arch/x86/kernel/smpboot_32.c | |||
@@ -185,7 +185,7 @@ static void __cpuinit smp_callin(void) | |||
185 | */ | 185 | */ |
186 | if (cpu_isset(cpuid, cpu_callout_map)) | 186 | if (cpu_isset(cpuid, cpu_callout_map)) |
187 | break; | 187 | break; |
188 | rep_nop(); | 188 | cpu_relax(); |
189 | } | 189 | } |
190 | 190 | ||
191 | if (!time_before(jiffies, timeout)) { | 191 | if (!time_before(jiffies, timeout)) { |
@@ -242,7 +242,7 @@ static void __cpuinit start_secondary(void *unused) | |||
242 | preempt_disable(); | 242 | preempt_disable(); |
243 | smp_callin(); | 243 | smp_callin(); |
244 | while (!cpu_isset(smp_processor_id(), smp_commenced_mask)) | 244 | while (!cpu_isset(smp_processor_id(), smp_commenced_mask)) |
245 | rep_nop(); | 245 | cpu_relax(); |
246 | /* | 246 | /* |
247 | * Check TSC synchronization with the BP: | 247 | * Check TSC synchronization with the BP: |
248 | */ | 248 | */ |