kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: john@jjdev.com (John de la Garza)
To: kernelnewbies@lists.kernelnewbies.org
Subject: msleep() in interrupt handler?
Date: Wed, 19 Aug 2015 23:17:01 -0700	[thread overview]
Message-ID: <20150820061700.GA7731@crux> (raw)
In-Reply-To: <CAAsE_uct0qR_nb2WbQD6qpNEsWdwuRB9xVeU85A0uiBbkqgGpA@mail.gmail.com>

On Thu, Aug 20, 2015 at 01:45:34PM +0800, Woody Wu wrote:
> I did not see the message.  Actually my interrupt handler is calling
> i2c_transfer which in turn used msleep() somewhere in its code.  Is this
> normal or dangerous?

Can you have the interrupt handler put the work on a workqueue
and quickly return?

  reply	other threads:[~2015-08-20  6:17 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-19 23:47 msleep() in interrupt handler? Woody Wu
2015-08-19 23:52 ` Jeff Haran
2015-08-20  5:45   ` Woody Wu
2015-08-20  6:17     ` John de la Garza [this message]
2015-08-20 11:02       ` Woody Wu
2015-08-20 12:35         ` victorascroft at gmail.com
2015-08-20 13:44           ` Woody Wu
2015-08-20 16:42             ` victorascroft at gmail.com
2015-08-20 16:54               ` Jeff Haran
2015-08-20 17:49                 ` victorascroft at gmail.com
2015-08-20 18:16                   ` Jeff Haran
2015-08-20 19:15                     ` victorascroft at gmail.com
2015-08-20 19:36                       ` Jeff Haran
2015-08-20 19:52                         ` victorascroft at gmail.com

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=20150820061700.GA7731@crux \
    --to=john@jjdev.com \
    --cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).