Changeset 3690 for trunk/coreboot-v2

Show
Ignore:
Timestamp:
10/23/08 00:30:17 (3 months ago)
Author:
mjones
Message:

Made await_ide(), which polls for an ide status change, check the status
reg much more often. In my case this reduced the time spent in coreboot
by 1.5 sec!
The timeout values of course aren't changed, only the granularity. Also,
I didn't see any udelay() implementation that looked like it couldn't
cope with 10 us delays. (Most are written as for (...) inb(0x80) loops.)

Signed-off-by: Jens Rottmann <JRottmann@…>
Acked-by: Marc Jones <marc.jones@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/coreboot-v2/src/pc80/ide/ide.c

    r1432 r3690  
    3030{ 
    3131        int result; 
     32        timeout *= 100; /* timeout was ms; finer granularity => reacts faster */ 
    3233        for(;;) { 
    3334                result = done(ctrl); 
     
    3940                        break; 
    4041                } 
    41                 udelay(1000); /* Added to avoid spinning GRW */ 
     42                udelay(10); /* Added to avoid spinning GRW */ 
    4243        } 
    4344        printk_info("IDE time out\n");