|
From: Paul M. <le...@us...> - 2006-08-07 02:14:12
|
Update of /cvsroot/linuxsh/linux/arch/sh/boards/renesas/r7780rp In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv568/arch/sh/boards/renesas/r7780rp Modified Files: irq.c Log Message: No need to toggle interrupts for IRQ enable/disable(), the generic hardirq framework already takes care of the locking and IRQ management for us. Index: irq.c =================================================================== RCS file: /cvsroot/linuxsh/linux/arch/sh/boards/renesas/r7780rp/irq.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- irq.c 6 Jul 2006 08:19:31 -0000 1.2 +++ irq.c 7 Aug 2006 02:14:09 -0000 1.3 @@ -39,30 +39,24 @@ static void disable_r7780rp_irq(unsigned int irq) { - unsigned long flags; unsigned short val; unsigned short mask = 0xffff ^ (0x0001 << mask_pos[irq]); /* Set the priority in IPR to 0 */ - local_irq_save(flags); val = ctrl_inw(IRLCNTR1); val &= mask; ctrl_outw(val, IRLCNTR1); - local_irq_restore(flags); } static void enable_r7780rp_irq(unsigned int irq) { - unsigned long flags; unsigned short val; unsigned short value = (0x0001 << mask_pos[irq]); /* Set priority in IPR back to original value */ - local_irq_save(flags); val = ctrl_inw(IRLCNTR1); val |= value; ctrl_outw(val, IRLCNTR1); - local_irq_restore(flags); } static void ack_r7780rp_irq(unsigned int irq) |