projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebdb513
)
cyclades: sleep instead busy-wait
author
Jiri Slaby
<
[email protected]
>
Sat, 19 Sep 2009 20:13:14 +0000
(13:13 -0700)
committer
Live-CD User
<
[email protected]
>
Sat, 19 Sep 2009 20:13:14 +0000
(13:13 -0700)
Avoid long busy loops (5 ms) which may be replaced by sleeps.
Signed-off-by: Jiri Slaby <
[email protected]
>
Signed-off-by: Alan Cox <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/char/cyclades.c
patch
|
blob
|
history
diff --git
a/drivers/char/cyclades.c
b/drivers/char/cyclades.c
index 3884ea439935991c70d63bac7b30c2c9318036f1..b6d40ad662ffd624c162faaed1144e278c02f0ae 100644
(file)
--- 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);