x86: Save TSC frequency in the global data
authorBin Meng <bmeng.cn@gmail.com>
Sun, 9 Nov 2014 14:19:35 +0000 (22:19 +0800)
committerSimon Glass <sjg@chromium.org>
Fri, 21 Nov 2014 06:24:10 +0000 (07:24 +0100)
commit258b1357c6b324b0a45ca0c1cf3dfd1ef1b4c5c4
tree1fbefc848bea5ef4a4c29be6957fe85b49c52572
parent80de049561f4d560c50341562b7e93ff45a1d8a0
x86: Save TSC frequency in the global data

Return the saved TSC frequency in get_tbclk_mhz().

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
arch/x86/include/asm/global_data.h
arch/x86/lib/tsc_timer.c