On Tue, 2012-05-29 at 14:29 +0200, Felix Fietkau wrote: > On 2012-05-24 6:02 AM, Sujith Manoharan wrote: > > When a fatal interrupt is received or it is detected that the baseband > > has hung, the chip has to be reset immediately. Otherwise, we end up > > processing spurious interrupts. Ensure that we bail out properly in > > the ISR when the reset work hasn't completed yet. > > > > Signed-off-by: Sujith Manoharan <c_manoha@xxxxxxxxxxxxxxxx> > Wouldn't it be much easier to just use a bool variable instead of the > combination of lock+flag? A simple variable assignment is atomic... Is that guaranteed for bool variables? johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html