Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5909
b: refs/heads/master
c: 1eecd73
h: refs/heads/master
i:
  5907: 967972f
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Aug 20, 2005
1 parent db24d4b commit 23b5f42
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e5ec10499a00bf4ce3440d5a9e1a5a176c5a640
refs/heads/master: 1eecd73cce4e11ba9d67ad767f92069cfba7b589
15 changes: 8 additions & 7 deletions trunk/arch/x86_64/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,14 @@ void __cpuinit start_secondary(void)
*/
set_cpu_sibling_map(smp_processor_id());

/*
* Wait for TSC sync to not schedule things before.
* We still process interrupts, which could see an inconsistent
* time in that window unfortunately.
* Do this here because TSC sync has global unprotected state.
*/
tsc_sync_wait();

/*
* We need to hold call_lock, so there is no inconsistency
* between the time smp_call_function() determines number of
Expand All @@ -509,13 +517,6 @@ void __cpuinit start_secondary(void)
per_cpu(cpu_state, smp_processor_id()) = CPU_ONLINE;
unlock_ipi_call_lock();

mb();

/* Wait for TSC sync to not schedule things before.
We still process interrupts, which could see an inconsistent
time in that window unfortunately. */
tsc_sync_wait();

cpu_idle();
}

Expand Down

0 comments on commit 23b5f42

Please sign in to comment.