Commit 2c6fcd47 authored by David S. Miller's avatar David S. Miller

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

parent 0055bcd2
......@@ -660,11 +660,14 @@ void __global_cli(void)
void __global_sti(void)
{
int cpu = smp_processor_id();
int cpu;
preempt_disable();
cpu = smp_processor_id();
if (! local_irq_count(cpu))
release_irqlock(cpu);
__sti();
preempt_enable();
}
unsigned long __global_save_flags(void)
......
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