From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/4] Add microsecond boot time measurement
Date: Sat, 14 May 2011 07:31:54 -0400 [thread overview]
Message-ID: <201105140731.54746.vapier@gentoo.org> (raw)
In-Reply-To: <1305319923-9477-2-git-send-email-sjg@chromium.org>
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
next prev parent reply other threads:[~2011-05-14 11:31 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-13 20:51 [U-Boot] [PATCH 0/4] Accurate boot time measurement Simon Glass
2011-05-13 20:52 ` [U-Boot] [PATCH 1/4] Add microsecond " Simon Glass
2011-05-14 11:19 ` Mike Frysinger
2011-05-14 11:31 ` Mike Frysinger [this message]
2011-05-13 20:52 ` [U-Boot] [PATCH 2/4] Add bootstage progress report Simon Glass
2011-05-14 11:42 ` Mike Frysinger
2011-05-13 20:52 ` [U-Boot] [PATCH 3/4] Add bootstage calls in places appropriate for network booting Simon Glass
2011-05-14 11:44 ` Mike Frysinger
2011-05-13 20:52 ` [U-Boot] [PATCH 4/4] Add option to print boot stage report before starting kernel Simon Glass
2011-05-14 11:46 ` Mike Frysinger
2011-05-14 11:34 ` [U-Boot] [PATCH 0/4] Accurate boot time measurement Mike Frysinger
2011-05-14 17:32 ` Simon Glass
2011-05-15 10:03 ` Graeme Russ
2011-05-15 21:34 ` Simon Glass
2011-05-15 22:56 ` Graeme Russ
2011-05-16 5:56 ` Wolfgang Denk
2011-05-16 6:10 ` Graeme Russ
2011-05-15 11:53 ` Wolfgang Denk
2011-05-15 21:58 ` Simon Glass
2011-05-15 22:36 ` Graeme Russ
2011-05-16 5:55 ` Wolfgang Denk
2011-05-16 6:11 ` Graeme Russ
2011-05-16 11:18 ` Wolfgang Denk
2011-05-16 2:59 ` Mike Frysinger
2011-05-16 5:48 ` Wolfgang Denk
2011-05-16 6:23 ` Graeme Russ
2011-05-16 11:40 ` Wolfgang Denk
2011-05-16 18:25 ` Scott Wood
2011-05-16 23:09 ` Graeme Russ
2011-05-16 14:23 ` Premi, Sanjeev
2011-05-16 16:00 ` Simon Glass
2011-05-16 18:32 ` Wolfgang Denk
2011-05-16 21:35 ` Simon Glass
2011-05-17 8:20 ` Detlev Zundel
2011-05-17 17:00 ` Simon Glass
2011-05-17 22:57 ` Graeme Russ
2011-05-19 8:36 ` Detlev Zundel
2011-05-20 1:48 ` Simon Glass
2011-05-20 2:28 ` Graeme Russ
2011-05-20 2:29 ` Graeme Russ
2011-05-23 15:22 ` Detlev Zundel
2011-05-24 2:55 ` Mike Frysinger
2011-05-24 7:18 ` Wolfgang Denk
2011-05-24 18:22 ` Mike Frysinger
2011-05-24 19:24 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201105140731.54746.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox