Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] Remove dead code from irq_txx9.c
@ 2007-08-03 14:33 Atsushi Nemoto
  2007-08-03 17:42 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Atsushi Nemoto @ 2007-08-03 14:33 UTC (permalink / raw)
  To: linux-mips; +Cc: ralf

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
diff --git a/arch/mips/kernel/irq_txx9.c b/arch/mips/kernel/irq_txx9.c
index 172e14b..a4d1462 100644
--- a/arch/mips/kernel/irq_txx9.c
+++ b/arch/mips/kernel/irq_txx9.c
@@ -105,13 +105,9 @@ static void txx9_irq_mask_ack(unsigned int irq)
 	unsigned int irq_nr = irq - TXX9_IRQ_BASE;
 
 	txx9_irq_mask(irq);
-	if (TXx9_IRCR_EDGE(txx9irq[irq_nr].mode)) {
-		/* clear edge detection */
-		u32 cr = __raw_readl(&txx9_ircptr->cr[irq_nr / 8]);
-		cr = (cr >> ((irq_nr & (8 - 1)) * 2)) & 3;
-		__raw_writel(TXx9_IRSCR_EIClrE | irq_nr,
-			     &txx9_ircptr->scr);
-	}
+	/* clear edge detection */
+	if (unlikely(TXx9_IRCR_EDGE(txx9irq[irq_nr].mode)))
+		__raw_writel(TXx9_IRSCR_EIClrE | irq_nr, &txx9_ircptr->scr);
 }
 
 static int txx9_irq_set_type(unsigned int irq, unsigned int flow_type)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Remove dead code from irq_txx9.c
  2007-08-03 14:33 [PATCH] Remove dead code from irq_txx9.c Atsushi Nemoto
@ 2007-08-03 17:42 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2007-08-03 17:42 UTC (permalink / raw)
  To: Atsushi Nemoto; +Cc: linux-mips

On Fri, Aug 03, 2007 at 11:33:38PM +0900, Atsushi Nemoto wrote:

Applied.  Thanks!

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-04 14:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-03 14:33 [PATCH] Remove dead code from irq_txx9.c Atsushi Nemoto
2007-08-03 17:42 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox