Messages in this thread | | | Subject | Re: [PATCH]: better usage of spinlocks in networking drivers | From | Jes Sorensen <> | Date | 03 Jul 1999 20:24:21 +0200 |
| |
>>>>> "Augusto" == Augusto Cesar Radtke <bishop@sekure.org> writes:
Augusto> The patch above it's to implement a better usage of spinlocks Augusto> in misc networking drivers, as Linus says in Augusto> Documentation/spinlocks.txt you must use the irq version of Augusto> spinlocks in interrupt handlers. The patch try to do this in Augusto> some 3com cards and in Donald's skeleton.c (for future Augusto> hackers reference), but there many others drivers that I need Augusto> to look in next weeks.
I can't read your patch as it is base64 encoded.
However an interrupt handler does only need to use spin_lock() and not spin_lock_irqsave() since it is guaranteed that the same interrupt source will not regenerate an interrupt. So even if the CPU itself is interrupted it will not reenter the same hander.
Jes
- 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/
| |