Re: [PATCH] improve spinlock debugging

george anzinger (george@mvista.com)
Tue, 04 Dec 2001 13:27:52 -0800


Nigel Gamble wrote:
>
> On Tue, 4 Dec 2001, george anzinger wrote:
> > For example, preemption currently counts
> > up on spin_lock and disable irq, counting the spin_lockirq twice. In
>
> That's not correct: we don't count it twice because we don't count
> local_irq_disable etc., only the spin locks. Because...
>
> > (Oh, and since the irq
> > inhibits preemption all by itself, we don't need to count it either.)
>
> ...so we don't.

Right, but we do count spin_lockirq (just once). See other email, this
time.

-- 
George           george@mvista.com
High-res-timers: http://sourceforge.net/projects/high-res-timers/
Real time sched: http://sourceforge.net/projects/rtsched/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/