From: Jun Sun <jsun@mvista.com>
To: "Kapoor, Pankaj" <pkapoor@telogy.com>
Cc: linux-mips@linux-mips.org, jsun@mvista.com
Subject: Re: MIPS Interrupts.
Date: Tue, 25 Nov 2003 16:34:20 -0800 [thread overview]
Message-ID: <20031125163420.J28822@mvista.com> (raw)
In-Reply-To: <37A3C2F21006D611995100B0D0F9B73C02C8FCAF@tnint11.telogy.design.ti.com>; from pkapoor@telogy.com on Tue, Nov 25, 2003 at 07:24:18PM -0500
On Tue, Nov 25, 2003 at 07:24:18PM -0500, Kapoor, Pankaj wrote:
> > The nested interrupt call, do_IRQ(), may still try to call do_softirq()
> but
> > that it will return immediately as it discovers another instance of
> do_softirq()
> > is running. No further nesting occurs as a result.
>
> How is this detected ? Is this the check of "softirq_pending(cpu)" in the
> do_softirq() ?
>
No. It is
if (in_interrupt())
return;
> Can we have a case as shown below :
>
> 1. Interrupt 1 is generated : Jump to general exception handler
> (0x8000:0180)
> 2. Save the current context
> 3. Interrupt 1 is processed which schedules tasklet1 for execution.
> softirq_pending(cpu) = TASKLET_SOFTIRQ
> 4. Interrupts are reenabled.
> 5. do_softirq : Tasklet1 is executing & softirq_pending(cpu) = 0.
> 6. -------> Interrupt 2 is generated : Jump to general exception handler
> (0x8000:0180)
> 6a) Save the current context
> 6b) Interrupt2 is processed which schedules tasklet2 for
> execution.
> softirq_pending(cpu) = TASKLET_SOFTIRQ
> 6c) Interrupts are reenabled.
> 6d) do_softirq : Tasklet2 is executing &
> softirq_pending(cpu) = 0.
Impossible here, due to the above checking code. Instead,
Tasklet2 will run by 5) once this interrupt trap returns.
Jun
next prev parent reply other threads:[~2003-11-26 0:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-26 0:24 MIPS Interrupts Kapoor, Pankaj
2003-11-26 0:34 ` Jun Sun [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-11-25 21:52 Kapoor, Pankaj
2003-11-25 23:06 ` Jun Sun
2003-11-25 23:09 ` Ralf Baechle
2003-11-26 0:31 ` Jun Sun
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=20031125163420.J28822@mvista.com \
--to=jsun@mvista.com \
--cc=linux-mips@linux-mips.org \
--cc=pkapoor@telogy.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