Skip to content

Commit

Permalink
donauboe: replace excessive udelay with msleep
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnd Bergmann authored and David S. Miller committed Apr 21, 2012
1 parent 31f3120 commit 32fd32a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/irda/donauboe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 32fd32a

Please sign in to comment.