From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Sat, 03 Nov 2012 15:55:41 +0100 Subject: [U-Boot] [PATCH 09/10] arm: Move bootstage record for board_init_f() to after arch_cpu_init() In-Reply-To: <1351813330-23741-9-git-send-email-sjg@chromium.org> References: <1351813330-23741-1-git-send-email-sjg@chromium.org> <1351813330-23741-9-git-send-email-sjg@chromium.org> Message-ID: <20121103145541.8AF72200255@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 <1351813330-23741-9-git-send-email-sjg@chromium.org> you wrote: > The timer may be inited in arch_cpu_init() so it is not safe to make a > bootstage mark before this is called. Arrange the code to fix this. > > We now get a correct time for board_init_f: > > Timer summary in microseconds: > Mark Elapsed Stage > 0 0 reset > 100,000 100,000 spl_start > 848,530 748,530 board_init_f > 907,301 58,771 board_init_r > 910,478 3,177 board_init > > Signed-off-by: Simon Glass > --- > arch/arm/lib/board.c | 11 +++++++++-- > 1 files changed, 9 insertions(+), 2 deletions(-) NAK as is. Please make sure to keep all arhcitectures in sync. The long term goal iss till to merge the lib/board.c files into a single, common one. 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 The universe contains any amount of horrible ways to be woken up, such as the noise of the mob breaking down the front door, the scream of fire engines, or the realization that today is the Monday which on Friday night was a comfortably long way off. - Terry Pratchett, _Moving Pictures_