]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
donauboe: replace excessive udelay with msleep
authorArnd Bergmann <arnd@arndb.de>
Fri, 20 Apr 2012 10:56:14 +0000 (10:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Apr 2012 19:28:47 +0000 (15:28 -0400)
No driver should spin the CPU for 10ms, so better use
an msleep, which is allowed in the ->suspend function.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/irda/donauboe.c

index 4351296dde323f0267b924a956bcb7009e07241b..510b9c8d23a9ea57066edc14e7ab307b0c9dce22 100644 (file)
@@ -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);