]> git.baikalelectronics.ru Git - kernel.git/commit
forcedeth: fix irq clearing and napi spin lock changes
authorAyaz Abdulla <aabdulla@nvidia.com>
Thu, 5 Mar 2009 08:02:34 +0000 (08:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2009 12:29:51 +0000 (05:29 -0700)
commit7b1528e357c765819a338ee214951e7d840a0a85
tree19f8327f23dd7137b3b67588b3484d6f8dc62ade
parentc55d05cb4d3b89fef9bbaae354c25d792732b144
forcedeth: fix irq clearing and napi spin lock changes

This patch clears the irqstatus register with the exact same events it
has read from it. Since the read-write operation is not atomic, a new
irqstatus bit could have been set in between these operations and would
then be cleared accidentally.

Secondly, we now don't need any spin lock protection when
scheduling/completing napi poll as the isr will not execute anymore (as
we turn off all interrupts now).

Signed-off-by: Ayaz Abdulla <aabdulla@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/forcedeth.c