usb: dwc3: gadget: remove unnecessary _irqsave()
authorFelipe Balbi <balbi@ti.com>
Mon, 28 Sep 2015 20:18:33 +0000 (15:18 -0500)
committerFelipe Balbi <balbi@ti.com>
Mon, 28 Sep 2015 20:19:31 +0000 (15:19 -0500)
We *know* our threads executes with our IRQs
disabled. We really don't need to use the _irqsave()
variant of spin_lock().

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c

index 81bfb9ad1e2ebbf99a1b874e893a64cd92aca61e..cca806e09e5bcd747d9795b7c041d3b69a8e47e6 100644 (file)
@@ -2642,16 +2642,15 @@ static irqreturn_t dwc3_process_event_buf(struct dwc3 *dwc, u32 buf)
 static irqreturn_t dwc3_thread_interrupt(int irq, void *_dwc)
 {
        struct dwc3 *dwc = _dwc;
-       unsigned long flags;
        irqreturn_t ret = IRQ_NONE;
        int i;
 
-       spin_lock_irqsave(&dwc->lock, flags);
+       spin_lock(&dwc->lock);
 
        for (i = 0; i < dwc->num_event_buffers; i++)
                ret |= dwc3_process_event_buf(dwc, i);
 
-       spin_unlock_irqrestore(&dwc->lock, flags);
+       spin_unlock(&dwc->lock);
 
        return ret;
 }