lkml.org 
[lkml]   [2000]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: RTL8139 Interrupt line blocked
Date
From: "Alan Cox" <alan@lxorguk.ukuu.org.uk>
> > > eth3: SMP simultaneous entry of an interrupt handler.
> > rtl8129() is running on both cpus: [i guess because]
> > * one cpu because the hardware interrupt arrived
> > * one cpu because the timer called the function.
>
> That would explain the problem. In which case you may want to put
> a spin_lock_irqsave() around the interrupt and timer to fix it
>

AFAICS dev->interrupt is used as spin_trylock():
before doing real work, the interrupt handler calls
test_and_set_bit(0,&dev->interrupt).
But I don't understand why dev->interrupt is set to 0 if this
"do_it_yourself_spin_trylock()" fails.

--
Manfred



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [from the cache]
©2003-2011 Jasper Spaans