From: Wolfgang Denk Date: Sun, 18 Mar 2012 21:34:06 +0100 Subject: [U-Boot] [PATCH v3 11/15] timer: add microsecond boot func In-Reply-To: <1326590698-7767-12-git-send-email-sjg@chromium.org> References: <1326590698-7767-1-git-send-email-sjg@chromium.org> <1326590698-7767-12-git-send-email-sjg@chromium.org> Message-ID: <20120318203406.82EE1202D7F@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Simon Glass, In message <1326590698-7767-12-git-send-email-sjg@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 > --- > 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