From 03cafbfdfe10d6797740c4456fd3a80c499e1c0b Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Fri, 6 Apr 2007 11:58:03 +0000 Subject: 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. Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2585 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/flashrom/udelay.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'util/flashrom/udelay.c') diff --git a/util/flashrom/udelay.c b/util/flashrom/udelay.c index 91c3c6dad5..1d0b42f039 100644 --- a/util/flashrom/udelay.c +++ b/util/flashrom/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"); } -- cgit v1.2.3