summaryrefslogtreecommitdiffstats
path: root/udelay.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2007-04-06 11:58:03 +0000
committerStefan Reinauer <stefan.reinauer@coreboot.org>2007-04-06 11:58:03 +0000
commit7038564346f660ce043d7942398f3e8a3a2db7ad (patch)
tree2d6573bc465284fa3fc57fe2afaa8f7b1dabd1ad /udelay.c
parent8e3a600123110d47076926cb8ee7c68195658f20 (diff)
downloadast2050-flashrom-7038564346f660ce043d7942398f3e8a3a2db7ad.zip
ast2050-flashrom-7038564346f660ce043d7942398f3e8a3a2db7ad.tar.gz
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>
Diffstat (limited to 'udelay.c')
-rw-r--r--udelay.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/udelay.c b/udelay.c
index 91c3c6d..1d0b42f 100644
--- a/udelay.c
+++ b/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");
}
OpenPOWER on IntegriCloud