Andrew Morton writes:
> Basically, you should use the irqsave version if there's any chance that
> an interrupt routine could claim the same lock. This is because the
> current CPU could get interrupted, try to grab the lock and would
> deadlock.
Not exactly what Daniel was asking, but yes, if in doubt, use the _irqsave
variant. If you can guarantee that interrupts are always enabled, and
you need to protect against interrupts, use the _irq variant.
_____
|_____| ------------------------------------------------- ---+---+-
| | Russell King rmk@arm.linux.org.uk --- ---
| | | | http://www.arm.linux.org.uk/~rmk/aboutme.html / / |
| +-+-+ --- -+-
/ | THE developer of ARM Linux |+| /|\
/ | | | --- |
+-+-+ ------------------------------------------------- /\\\ |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:14 EST