Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Arnd Bergmann and committed by
David S. Miller
32fd32a5 31f31204

+1 -1
+1 -1
drivers/net/irda/donauboe.c
··· 1710 1710 1711 1711 /* Flush all packets */ 1712 1712 while ((i--) && (self->txpending)) 1713 - udelay (10000); 1713 + msleep(10); 1714 1714 1715 1715 spin_lock_irqsave(&self->spinlock, flags); 1716 1716