diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2014-11-09 14:19:35 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-11-21 06:24:10 (GMT) |
commit | 258b1357c6b324b0a45ca0c1cf3dfd1ef1b4c5c4 (patch) | |
tree | 1fbefc848bea5ef4a4c29be6957fe85b49c52572 /arch/x86/include | |
parent | 80de049561f4d560c50341562b7e93ff45a1d8a0 (diff) | |
download | u-boot-fsl-qoriq-258b1357c6b324b0a45ca0c1cf3dfd1ef1b4c5c4.tar.xz |
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>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/global_data.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/global_data.h b/arch/x86/include/asm/global_data.h index 3e3073a..186b97e 100644 --- a/arch/x86/include/asm/global_data.h +++ b/arch/x86/include/asm/global_data.h @@ -21,6 +21,7 @@ struct arch_global_data { uint64_t tsc_base; /* Initial value returned by rdtsc() */ uint32_t tsc_base_kclocks; /* Initial tsc as a kclocks value */ uint32_t tsc_prev; /* For show_boot_progress() */ + uint32_t tsc_mhz; /* TSC frequency in MHz */ void *new_fdt; /* Relocated FDT */ uint32_t bist; /* Built-in self test value */ }; |