Skip to content

Commit

Permalink
cyclades: sleep instead busy-wait
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Slaby authored and Live-CD User committed Sep 19, 2009
1 parent ebdb513 commit f6e208c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/char/cyclades.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit f6e208c

Please sign in to comment.