| From 34b3d4e232689c2e0af4aaa9bc157cfea3e54525 Mon Sep 17 00:00:00 2001 |
| From: Wu Zhangjin <wuzhangjin@gmail.com> |
| Date: Wed, 10 Mar 2010 02:03:26 +0800 |
| Subject: [PATCH] RT: MIPS: Loongson: Un-thread cascade interrupts |
| |
| commit 25daa0f628cf5542204f0c5f8798206d43b730c0 in tip. |
| |
| There are two cascade interrupts in Loongson machines, one for bonito |
| northbridge, another for the 8259A controller in the southbridge. |
| |
| Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| --- |
| arch/mips/loongson/fuloong-2e/irq.c | 1 + |
| arch/mips/loongson/lemote-2f/irq.c | 3 ++- |
| 2 files changed, 3 insertions(+), 1 deletions(-) |
| |
| diff --git a/arch/mips/loongson/fuloong-2e/irq.c b/arch/mips/loongson/fuloong-2e/irq.c |
| index 320e937..3844258 100644 |
| --- a/arch/mips/loongson/fuloong-2e/irq.c |
| +++ b/arch/mips/loongson/fuloong-2e/irq.c |
| @@ -42,6 +42,7 @@ asmlinkage void mach_irq_dispatch(unsigned int pending) |
| static struct irqaction cascade_irqaction = { |
| .handler = no_action, |
| .name = "cascade", |
| + .flags = IRQF_NODELAY, |
| }; |
| |
| void __init set_irq_trigger_mode(void) |
| diff --git a/arch/mips/loongson/lemote-2f/irq.c b/arch/mips/loongson/lemote-2f/irq.c |
| index 1d8b4d2..b63a661 100644 |
| --- a/arch/mips/loongson/lemote-2f/irq.c |
| +++ b/arch/mips/loongson/lemote-2f/irq.c |
| @@ -106,12 +106,13 @@ static irqreturn_t ip6_action(int cpl, void *dev_id) |
| struct irqaction ip6_irqaction = { |
| .handler = ip6_action, |
| .name = "cascade", |
| - .flags = IRQF_SHARED, |
| + .flags = IRQF_SHARED | IRQF_NODELAY, |
| }; |
| |
| struct irqaction cascade_irqaction = { |
| .handler = no_action, |
| .name = "cascade", |
| + .flags = IRQF_NODELAY, |
| }; |
| |
| void __init mach_init_irq(void) |
| -- |
| 1.7.0.4 |
| |