Commit 9295af07 authored by Ingo Molnar's avatar Ingo Molnar Committed by Thomas Gleixner

x86: tsc sync use local_irq_save

This can be called with interrupts disabled. So we would
unconditionally enable interrupts.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 78af08d9
...@@ -104,6 +104,7 @@ static __cpuinit void check_tsc_warp(void) ...@@ -104,6 +104,7 @@ static __cpuinit void check_tsc_warp(void)
*/ */
void __cpuinit check_tsc_sync_source(int cpu) void __cpuinit check_tsc_sync_source(int cpu)
{ {
unsigned long flags;
int cpus = 2; int cpus = 2;
/* /*
...@@ -129,8 +130,11 @@ void __cpuinit check_tsc_sync_source(int cpu) ...@@ -129,8 +130,11 @@ void __cpuinit check_tsc_sync_source(int cpu)
/* /*
* Wait for the target to arrive: * Wait for the target to arrive:
*/ */
local_save_flags(flags);
local_irq_enable();
while (atomic_read(&start_count) != cpus-1) while (atomic_read(&start_count) != cpus-1)
cpu_relax(); cpu_relax();
local_irq_restore(flags);
/* /*
* Trigger the target to continue into the measurement too: * Trigger the target to continue into the measurement too:
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment