diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2015-11-13 00:11:19 -0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-12-01 06:23:51 -0700 |
commit | 0f3176ed68705ceb220c395327aee7e690f7724b (patch) | |
tree | 1a969225e48b86bd9aec96f3393445b2a6a0d6be /arch/x86/cpu | |
parent | 9ca07ebbac3c94974db75e25004203289d9013bc (diff) | |
download | u-boot-imx-0f3176ed68705ceb220c395327aee7e690f7724b.zip u-boot-imx-0f3176ed68705ceb220c395327aee7e690f7724b.tar.gz u-boot-imx-0f3176ed68705ceb220c395327aee7e690f7724b.tar.bz2 |
x86: Remove MIN_PORT80_KCLOCKS_DELAY
This is not referenced anywhere. Remove it, as well as
tsc_base_kclocks and tsc_prev in the global data.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Fix 'Reomve' typo:
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu')
-rw-r--r-- | arch/x86/cpu/cpu.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c index 812c5e4..1707993 100644 --- a/arch/x86/cpu/cpu.c +++ b/arch/x86/cpu/cpu.c @@ -641,24 +641,6 @@ int cpu_jump_to_64bit(ulong setup_base, ulong target) void show_boot_progress(int val) { -#if MIN_PORT80_KCLOCKS_DELAY - /* - * Scale the time counter reading to avoid using 64 bit arithmetics. - * Can't use get_timer() here becuase it could be not yet - * initialized or even implemented. - */ - if (!gd->arch.tsc_prev) { - gd->arch.tsc_base_kclocks = rdtsc() / 1000; - gd->arch.tsc_prev = 0; - } else { - uint32_t now; - - do { - now = rdtsc() / 1000 - gd->arch.tsc_base_kclocks; - } while (now < (gd->arch.tsc_prev + MIN_PORT80_KCLOCKS_DELAY)); - gd->arch.tsc_prev = now; - } -#endif outb(val, POST_PORT); } |