]> git.sur5r.net Git - u-boot/commit
x86: coreboot: Set up timer base correctly
authorBin Meng <bmeng.cn@gmail.com>
Tue, 6 Jan 2015 14:14:13 +0000 (22:14 +0800)
committerSimon Glass <sjg@chromium.org>
Tue, 13 Jan 2015 15:25:02 +0000 (07:25 -0800)
commit5c564b0d2fd108ebc5fd6bb0081b981ee32ddf0b
treeedd104af8947f8e9b4575c1c96fc7c9d46f44cbf
parentb2439aecd3091e754d3dc3f8be422fee74180295
x86: coreboot: Set up timer base correctly

If coreboot is built with CONFIG_COLLECT_TIMESTAMPS, use the value
of base_time in coreboot's timestamp table as our timer base,
otherwise TSC counter value will be used.

Sometimes even coreboot is built with CONFIG_COLLECT_TIMESTAMPS,
the value of base_time in the timestamp table is still zero, so
we must exclude this case too (this is currently seen on booting
coreboot in qemu).

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/coreboot/timestamp.c