Re: interrupt checks for spinlocks

Zwane Mwaikambo (zwane@holomorphy.com)
Sun, 3 Nov 2002 22:36:26 -0500 (EST)


On 3 Nov 2002, Robert Love wrote:

> In other words, a lock unique to your interrupt handler does not need to
> disable interrupts (since only that handler can grab the lock and it is
> disabled).
>
> If other handlers can grab the lock, interrupts need to be disabled.

The only way would be running with SA_INTERRUPT for that isr and any
others on that line which might contend for the same lock. Determining
otherwise seems like too much trouble, and anyway i can't recall ever
seeing such a scenario in drivers/ Basically i think we should forget
about option 1.

Zwane

-- 
function.linuxpower.ca

- 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/