[U-Boot] [PATCH 1/4] Add microsecond boot time measurement
Mike Frysinger
vapier at gentoo.org
Sat May 14 13:31:54 CEST 2011
On Friday, May 13, 2011 16:52:00 Simon Glass wrote:
> --- a/include/common.h
> +++ b/include/common.h
> @@ -177,6 +177,14 @@ typedef void (interrupt_handler_t)(void *);
> #endif /* CONFIG_SERIAL_MULTI */
>
> /*
> + * Return the time since boot in microseconds, This is needed for
> bootstage
> + * and should be defined in CPU- or board-specific code.
> + */
> +unsigned long timer_get_us(void);
the API is already "get_timer()" for msec precision, so this probably should
be named "timer_get_us()". although this differs from the common "get_timer"
in that this is supposed to return an absolute time from boot instead of
relative to the passed in "base", so probably want to name it accordingly to
avoid confusion: timer_get_boot_us().
the POST code already has a func that does this called "post_time_ms()". so
that should get thrown out and converted to this new func.
all of which means this particular func should be a sep patch.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110514/81676fe0/attachment.pgp
More information about the U-Boot
mailing list