Commit 5567614b authored by Ingo Molnar's avatar Ingo Molnar

- sti() preemption fix.

parent d76513b3
...@@ -370,11 +370,12 @@ void __global_cli(void) ...@@ -370,11 +370,12 @@ void __global_cli(void)
void __global_sti(void) void __global_sti(void)
{ {
int cpu = smp_processor_id(); int cpu = get_cpu();
if (!local_irq_count(cpu)) if (!local_irq_count(cpu))
release_irqlock(cpu); release_irqlock(cpu);
__sti(); __sti();
put_cpu();
} }
/* /*
......
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