aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-09-19 16:13:14 -0400
committerLive-CD User <linux@linux.site>2009-09-19 16:13:14 -0400
commitf6e208c1119206e2382ef7df6e47aaee18eb7f10 (patch)
treed79cd4bca55484b2989cd8fd879bf454dfcf80b2 /drivers/char
parentebdb513596c0eb1dcb3bad8f53865964a2207ca9 (diff)
cyclades: sleep instead busy-wait
Avoid long busy loops (5 ms) which may be replaced by sleeps. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/cyclades.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c
index 3884ea439935..b6d40ad662ff 100644
--- a/drivers/char/cyclades.c
+++ b/drivers/char/cyclades.c
@@ -389,7 +389,7 @@ static unsigned detect_isa_irq(void __iomem *address)
389 389
390 irqs = probe_irq_on(); 390 irqs = probe_irq_on();
391 /* Wait ... */ 391 /* Wait ... */
392 udelay(5000L); 392 msleep(5);
393 393
394 /* Enable the Tx interrupts on the CD1400 */ 394 /* Enable the Tx interrupts on the CD1400 */
395 local_irq_save(flags); 395 local_irq_save(flags);
@@ -402,7 +402,7 @@ static unsigned detect_isa_irq(void __iomem *address)
402 local_irq_restore(flags); 402 local_irq_restore(flags);
403 403
404 /* Wait ... */ 404 /* Wait ... */
405 udelay(5000L); 405 msleep(5);
406 406
407 /* Check which interrupt is in use */ 407 /* Check which interrupt is in use */
408 irq = probe_irq_off(irqs); 408 irq = probe_irq_off(irqs);