public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pierre Ossman <drzeus-list@drzeus.cx>
To: LKML <linux-kernel@vger.kernel.org>
Subject: Tasklet usage?
Date: Fri, 15 Oct 2004 15:14:38 +0200	[thread overview]
Message-ID: <416FCD3E.8010605@drzeus.cx> (raw)

My driver needs to spend a lot of time inside the interrupt handler 
(draining a FIFO). I suspect this might cause problems blocking other 
interrupt handlers so I was thinking about moving this into a tasklet.
Not being to familiar with tasklets, a few questions pop up.

* Will a tasklet scheduled from the interrupt handler be executed as 
soon as interrupt handling is done?
* Can tasklets be preempted?
* If a tasklet gets scheduled while running, will it be executed once 
more? (Needed if I get another FIFO interrupt while the tasklet is just 
exiting).

The FIFO is a bit small so time is of the essence. That's why this 
routine is in the interrupt handler to begin with.

Rgds
Pierre Ossman

             reply	other threads:[~2004-10-15 13:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-15 13:14 Pierre Ossman [this message]
2004-10-15 13:32 ` Tasklet usage? Neil Horman
2004-10-15 13:46   ` Pierre Ossman
2004-10-15 14:09     ` Neil Horman
2004-10-16 15:17 ` Pierre Ossman
2004-10-16 16:03   ` Roland Dreier
2004-10-16 16:36     ` Pierre Ossman
2004-10-16 17:51       ` Roland Dreier
     [not found] <fa.dvqma04.n40gos@ifi.uio.no>
2004-10-16  1:46 ` Robert Hancock
     [not found] <fa.hf0cjfr.n3qt2d@ifi.uio.no>
     [not found] ` <fa.doac9ep.1ckig8r@ifi.uio.no>
2004-10-16 17:53   ` Robert Hancock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=416FCD3E.8010605@drzeus.cx \
    --to=drzeus-list@drzeus.cx \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox