From: Jun Sun <jsun@mvista.com>
To: linux-kernel@vger.kernel.org, linux-mips@oss.sgi.com
Subject: ack() and end() in hw_irq_controller
Date: Tue, 03 Apr 2001 19:07:00 -0700 [thread overview]
Message-ID: <3ACA81C4.55E118DD@mvista.com> (raw)
I am trying to adopt the new irq.c under arch/i386/kernel to a MIPS board and
hopefully to MIPS common code in general. This is in the anticipation that
the irq.c file will be moved to common kernel directory in 2.5.
While the rest look pretty self-explanatory, I do have a couple of questions
about ack() and end().
1. It seems to me that in ack() we need to clear any latched, edge triggerred
interrupt AND disable the irq. True?
2. Similarly end() should re-enable the irq.
3. I don't quite understand the comment about end(). Any explanation? Does
that imply we should check if it is disable before we re-enable the irq?
However, it seems such complication can only happen on a SMP, right?
/*
* The ->end() handler has to deal with interrupts which got
* disabled while the handler was running.
*/
Thanks in advance.
Jun
reply other threads:[~2001-04-04 2:12 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=3ACA81C4.55E118DD@mvista.com \
--to=jsun@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@oss.sgi.com \
/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