From: Liming Wang <liming.wang@windriver.com>
To: <Bruce.Ashfield@windriver.com>
Cc: yocto@yoctoproject.org, dvhart@linux.intel.com
Subject: [PATCH 1/1] mips/rt: convert cascade interrupt to no threaded
Date: Thu, 25 Aug 2011 15:55:35 +0800 [thread overview]
Message-ID: <1314258935-32230-2-git-send-email-liming.wang@windriver.com> (raw)
In-Reply-To: <1314258935-32230-1-git-send-email-liming.wang@windriver.com>
preempt_rt kernel forces all irq interrupts to be threaded except some
special interrupts. This cascade interrupt belongs to the exceptions.
Because irq2 is initialized more early than "kthreadd" task,
which converts irq interrupt to threaded.
If this irq is threaded, kernel calls "try_to_wake_up" function
to wake up "kthreadd" task, but at that moment, "kthreadd" task hasn't been
initialized well, so try_to_wake_up wakes up a NULL task.
Signed-off-by: Liming Wang <liming.wang@windriver.com>
---
arch/mips/kernel/i8259.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/mips/kernel/i8259.c b/arch/mips/kernel/i8259.c
index 5c74eb7..fb338db 100644
--- a/arch/mips/kernel/i8259.c
+++ b/arch/mips/kernel/i8259.c
@@ -295,6 +295,7 @@ static void init_8259A(int auto_eoi)
static struct irqaction irq2 = {
.handler = no_action,
.name = "cascade",
+ .flags = IRQF_NO_THREAD,
};
static struct resource pic1_io_resource = {
--
1.7.0.4
next prev parent reply other threads:[~2011-08-25 8:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-25 7:55 [PATCH 0/1] mips/rt: convert cascade interrupt to no threaded Liming Wang
2011-08-25 7:55 ` Liming Wang [this message]
2011-08-25 13:18 ` Bruce Ashfield
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=1314258935-32230-2-git-send-email-liming.wang@windriver.com \
--to=liming.wang@windriver.com \
--cc=Bruce.Ashfield@windriver.com \
--cc=dvhart@linux.intel.com \
--cc=yocto@yoctoproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.