summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pc80/ide/ide.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pc80/ide/ide.c b/src/pc80/ide/ide.c
index eab879bc32..a164e9e762 100644
--- a/src/pc80/ide/ide.c
+++ b/src/pc80/ide/ide.c
@@ -29,6 +29,7 @@ static int await_ide(int (*done)(struct controller *ctrl),
struct controller *ctrl, unsigned long timeout)
{
int result;
+ timeout *= 100; /* timeout was ms; finer granularity => reacts faster */
for(;;) {
result = done(ctrl);
if (result) {
@@ -38,7 +39,7 @@ static int await_ide(int (*done)(struct controller *ctrl),
if (timeout-- <= 0) {
break;
}
- udelay(1000); /* Added to avoid spinning GRW */
+ udelay(10); /* Added to avoid spinning GRW */
}
printk_info("IDE time out\n");
return -1;