From: grygorii.strashko@ti.com (Grygorii Strashko)
To: linux-arm-kernel@lists.infradead.org
Subject: question about irq_enter()/irq_exit() calling policy
Date: Tue, 29 Nov 2016 17:47:12 -0600 [thread overview]
Message-ID: <22d0d991-bbe2-ce10-5202-3cdf97a9ecf2@ti.com> (raw)
Hi All,
Sorry for the may be dumb question, but what is the calling policy for irq_enter()/irq_exit()?
1) Should these function be called each time system enter/exit IRQ context?
HW IRQ:
switch (IRQ mode)
...
irq_enter()
handle irq - execute hw_irq_hadler
irq_exit()
...
switch
2) Should these function be called for each processed irq?
HW IRQ:
switch (IRQ mode)
...
while (irq = get_pending_irq()) {
...
irq_enter()
handle(irq) - execute hw_irq_hadler
irq_exit()
}
...
switch
--
regards,
-grygorii
next reply other threads:[~2016-11-29 23:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-29 23:47 Grygorii Strashko [this message]
2016-11-30 10:21 ` question about irq_enter()/irq_exit() calling policy Russell King - ARM Linux
2016-11-30 17:07 ` Grygorii Strashko
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=22d0d991-bbe2-ce10-5202-3cdf97a9ecf2@ti.com \
--to=grygorii.strashko@ti.com \
--cc=linux-arm-kernel@lists.infradead.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