Commit 33bb8238 authored by Robert Love's avatar Robert Love Committed by Linus Torvalds

[PATCH] preempt-safe do_softirq

Attached patch makes do_softirq preempt-safe simply by moving the
current CPU assignment a couple lines down below the interrupt disable.
parent 021af973
......@@ -61,7 +61,7 @@ static inline void wakeup_softirqd(unsigned cpu)
asmlinkage void do_softirq()
{
int cpu = smp_processor_id();
unsigned long cpu;
__u32 pending;
long flags;
__u32 mask;
......@@ -71,6 +71,7 @@ asmlinkage void do_softirq()
local_irq_save(flags);
cpu = smp_processor_id();
pending = softirq_pending(cpu);
if (pending) {
......
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