Skip to content
Snippets Groups Projects
Commit 0f3176ed authored by Bin Meng's avatar Bin Meng Committed by Simon Glass
Browse files

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: default avatarBin Meng <bmeng.cn@gmail.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
Fix 'Reomve' typo:
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 9ca07ebb
No related branches found
No related tags found
Loading
...@@ -641,24 +641,6 @@ int cpu_jump_to_64bit(ulong setup_base, ulong target) ...@@ -641,24 +641,6 @@ int cpu_jump_to_64bit(ulong setup_base, ulong target)
void show_boot_progress(int val) 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); outb(val, POST_PORT);
} }
......
...@@ -54,8 +54,6 @@ struct arch_global_data { ...@@ -54,8 +54,6 @@ struct arch_global_data {
uint8_t x86_mask; uint8_t x86_mask;
uint32_t x86_device; uint32_t x86_device;
uint64_t tsc_base; /* Initial value returned by rdtsc() */ 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 */ uint32_t tsc_mhz; /* TSC frequency in MHz */
void *new_fdt; /* Relocated FDT */ void *new_fdt; /* Relocated FDT */
uint32_t bist; /* Built-in self test value */ uint32_t bist; /* Built-in self test value */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment