[U-Boot] [PATCH v3 11/15] timer: add microsecond boot func

Wolfgang Denk wd at denx.de
Sun Mar 18 21:34:06 CET 2012

Dear Simon Glass,

In message <1326590698-7767-12-git-send-email-sjg at chromium.org> you wrote:
> Define timer_get_boot_us() which returns the number of microseconds
> since boot. If undefined then we use get_timer() * 1000.
> We can fit this in a 32-bit register which keeps everyone happy on
> the efficiency side. It will wrap around after about an hour. If we
> are still looking at it after an hour then we had better not be
> timing the boot.
> There is some scope to join bootstage and post, but for now they are
> separate things with separate CONFIGs, and you don't have to enable
> one to get the other.
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> Changes in v3:
> - Rename timer patch to remove bootstage: tag
>  include/common.h |    7 +++++++
>  lib/time.c       |   17 +++++++++++++++++
>  2 files changed, 24 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
On my planet, to rest is to rest -- to cease using energy. To me,  it
is  quite  illogical to run up and down on green grass, using energy,
instead of saving it.
	-- Spock, "Shore Leave", stardate 3025.2

More information about the U-Boot mailing list