lkml.org 
[lkml]   [2009]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 14/79] cyclades: sleep instead busy-wait
Date
From: Jiri Slaby <jirislaby@gmail.com>

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>
---
drivers/char/cyclades.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c
index 3884ea4..b6d40ad 100644
--- a/drivers/char/cyclades.c
+++ b/drivers/char/cyclades.c
@@ -389,7 +389,7 @@ static unsigned detect_isa_irq(void __iomem *address)

irqs = probe_irq_on();
/* Wait ... */
- udelay(5000L);
+ msleep(5);

/* Enable the Tx interrupts on the CD1400 */
local_irq_save(flags);
@@ -402,7 +402,7 @@ static unsigned detect_isa_irq(void __iomem *address)
local_irq_restore(flags);

/* Wait ... */
- udelay(5000L);
+ msleep(5);

/* Check which interrupt is in use */
irq = probe_irq_off(irqs);
--
1.6.4.2


\
 
 \ /
  Last update: 2009-09-19 23:45    [W:0.355 / U:1.196 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site