netdev
[Top] [All Lists]

Re: rudimentary ISR question

To: Steve Modica <modica@xxxxxxx>
Subject: Re: rudimentary ISR question
From: Krishna Kumar <kumarkr@xxxxxxxxxx>
Date: Mon, 12 Apr 2004 16:23:28 -0700
Cc: netdev@xxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx

I think it is because the interrupt routine can be called as dev->poll_controller()
and race with real interrupts.

- KK

Inactive hide details for Steve Modica <modica@xxxxxxx>Steve Modica <modica@xxxxxxx>




          Steve Modica <modica@xxxxxxx>
          Sent by: netdev-bounce@xxxxxxxxxxx

          04/12/2004 03:16 PM



To: netdev@xxxxxxxxxxx
cc:
Subject: rudimentary ISR question


Hi All,

I'm looking at the tg3.c driver in the 2.4.21 kernel and in the
_interrupt routing, the driver is calling spin_lock_irqsave.

Since it's guaranteed that the tg3 interrupt handler will be disabled
for the duration of the interrupt handler, why can't the driver simply
call spin_lock?

Steve

GIF image

<Prev in Thread] Current Thread [Next in Thread>