Commit f6e208c1 authored by Jiri Slaby's avatar Jiri Slaby Committed by Live-CD User

cyclades: sleep instead busy-wait

Avoid long busy loops (5 ms) which may be replaced by sleeps.
Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ebdb5135
...@@ -389,7 +389,7 @@ static unsigned detect_isa_irq(void __iomem *address) ...@@ -389,7 +389,7 @@ static unsigned detect_isa_irq(void __iomem *address)
irqs = probe_irq_on(); irqs = probe_irq_on();
/* Wait ... */ /* Wait ... */
udelay(5000L); msleep(5);
/* Enable the Tx interrupts on the CD1400 */ /* Enable the Tx interrupts on the CD1400 */
local_irq_save(flags); local_irq_save(flags);
...@@ -402,7 +402,7 @@ static unsigned detect_isa_irq(void __iomem *address) ...@@ -402,7 +402,7 @@ static unsigned detect_isa_irq(void __iomem *address)
local_irq_restore(flags); local_irq_restore(flags);
/* Wait ... */ /* Wait ... */
udelay(5000L); msleep(5);
/* Check which interrupt is in use */ /* Check which interrupt is in use */
irq = probe_irq_off(irqs); irq = probe_irq_off(irqs);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment