Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32fd32a5 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by David S. Miller
Browse files

donauboe: replace excessive udelay with msleep



No driver should spin the CPU for 10ms, so better use
an msleep, which is allowed in the ->suspend function.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 31f31204
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1710,7 +1710,7 @@ toshoboe_gotosleep (struct pci_dev *pci_dev, pm_message_t crap)

/* Flush all packets */
  while ((i--) && (self->txpending))
    udelay (10000);
    msleep(10);

  spin_lock_irqsave(&self->spinlock, flags);