Commit d76513b3 authored by Ingo Molnar's avatar Ingo Molnar

- fix preemption bug in cli().

parent 6986d71d
......@@ -360,8 +360,9 @@ void __global_cli(void)
__save_flags(flags);
if (flags & (1 << EFLAGS_IF_SHIFT)) {
int cpu = smp_processor_id();
int cpu;
__cli();
cpu = smp_processor_id();
if (!local_irq_count(cpu))
get_irqlock(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