CHROMIUM: x86: print out initial usec value calculated from TSC and CPU HZ
authorSonny Rao <sonnyrao@chromium.org>
Mon, 12 Sep 2011 22:37:35 +0000 (15:37 -0700)
committerGrant Grundler <grundler@google.com>
Thu, 24 May 2012 22:06:05 +0000 (15:06 -0700)
commit71b49f337f3e719553b9e2c5d36ffb2e18f8e3ff
tree76a189f175512042e93d87c67d1316a7d3446ad9
parent9e2955dacf69f9358438bcb45d1327c3ea4b4190
CHROMIUM: x86: print out initial usec value calculated from TSC and CPU HZ

This is to give an idea of how much time was spent in firmware and kernel
prior to timekeeping initialization in the kernel.  We print out TSC now,
but printing out usec is more portable across architectures.  We can
remove the raw TSC print once the scripts have been changed over to use
usec.

BUG=chromium-os:4900
TEST=boot on an x86 platform, verify that there is a line in the
kernel log saying "Initial usec timer"

Change-Id: I0a90643f383a937821f8a6439e994ffdaf43d454
Signed-off-by: Sonny Rao <sonnyrao@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/7584
Reviewed-by: Olof Johansson <olofj@chromium.org>
arch/x86/kernel/tsc.c