lkml.org 
[lkml]   [2004]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Documentation on top half and bottom halves
Date
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]
\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.045 / U:0.980 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site