From: Mike Frysinger Date: Sat, 14 May 2011 07:31:54 -0400 Subject: [U-Boot] [PATCH 1/4] Add microsecond boot time measurement In-Reply-To: <1305319923-9477-2-git-send-email-sjg@chromium.org> References: <1305319923-9477-1-git-send-email-sjg@chromium.org> <1305319923-9477-2-git-send-email-sjg@chromium.org> Message-ID: <201105140731.54746.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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