mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
Trivial (cosmetic) cleanup
* Only open /dev/mem once and do it early. * Drop extern for function prototypes. * Minimize ts5300 impact in probe_flash() This cleanup will making ICH7 SPI support quite some easier. Corresponding to flashrom svn r100 and coreboot v2 svn r2585. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
This commit is contained in:

committed by
Stefan Reinauer

parent
8e3a600123
commit
7038564346
6
udelay.c
6
udelay.c
@ -18,7 +18,8 @@ void myusec_calibrate_delay()
|
||||
struct timeval start, end;
|
||||
int ok = 0;
|
||||
|
||||
printf_debug("Setting up microsecond timing loop\n");
|
||||
printf("Calibrating delay loop... ");
|
||||
|
||||
while (!ok) {
|
||||
gettimeofday(&start, 0);
|
||||
myusec_delay(count);
|
||||
@ -34,5 +35,6 @@ void myusec_calibrate_delay()
|
||||
// compute one microsecond. That will be count / time
|
||||
micro = count / timeusec;
|
||||
|
||||
printf_debug("%ldM loops per second\n", (unsigned long)micro);
|
||||
printf_debug("%ldM loops per second. ", (unsigned long)micro);
|
||||
printf("ok\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user