From: Priyanka Gupta Jain <p.priyankagupta@gmail.com>
To: linux-rt-users <linux-rt-users@vger.kernel.org>
Subject: what to use in threaded ISR routine in place of in_irq()
Date: Wed, 25 Apr 2012 16:32:08 +0530 [thread overview]
Message-ID: <CACpc7pc8b3x63fnHEmakU5KdyPHRfWzuuwLWCjXdAYaA-DiwWg@mail.gmail.com> (raw)
hi,
While running in one of ISR routine, we have a call to function x()
which makes a call to in_irq() to check if the function x() has been
called in ISR context or from some other process and do the processing
accordingly.
This scenario works fine in case of hard ISR.
But with PREEMPT_RT patch, ISR routine gets converted into threaded
ISR and now in function x(), we can not use in_irq() to distinguish
beween threaded isr or some other process context.
Is there any function in PREEMPT_RT kernel similar to in_irq(), which
I can use to check if running in threaded isr context or not
Regards
Priyanka
reply other threads:[~2012-04-25 11:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=CACpc7pc8b3x63fnHEmakU5KdyPHRfWzuuwLWCjXdAYaA-DiwWg@mail.gmail.com \
--to=p.priyankagupta@gmail.com \
--cc=linux-rt-users@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;
as well as URLs for NNTP newsgroup(s).