Messages in this thread | | | From | Arnd Bergmann <> | Subject | Re: Documentation on top half and bottom halves | Date | Sat, 18 Dec 2004 15:08:53 +0100 |
| |
On Sünnavend 18 Dezember 2004 14:41, you wrote: > How to understand when to use which mechanism depending upon the hardware: > > 1) If DMA support is not there and If it is there. > 2) If Shared Interrupts are there and not there. > 3) If there are multiple same Host controllers and single Host Controller.
It's independent of these questions. The decision between tasklet and workqueue is mostly:
- If you need non-atomic operations (e.g. allocate memory with GFP_KERNEL), you have to use work queues. - If you need very low latencies for processing the interrupts, you should use tasklets. - When in doubt, use work queues.
Arnd <><
PS: pleas read http://www.netmeister.org/news/learn2quote.html [unhandled content-type:application/pgp-signature] | |