Commit 0055bcd2 authored by David S. Miller's avatar David S. Miller

arch/sparc64/kernel/irq.c: Fix preemption bug in __global_cli.

parent 76ef485a
......@@ -650,8 +650,9 @@ void __global_cli(void)
__save_flags(flags);
if(flags == 0) {
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