summaryrefslogtreecommitdiff
path: root/drivers/timer/tsc_timer.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-10-22 13:56:10 -0400
committerTom Rini <trini@konsulko.com>2018-10-22 13:56:10 -0400
commitc95c666d0128e5ec0c161b531c568233a8d3979d (patch)
tree77b5e5f3575b67216190d9f14411f8c692f808f1 /drivers/timer/tsc_timer.c
parent88d60db01168c743b4ae4152150a43a3df43c1c0 (diff)
parent3fdfca7a782e7d84bc14cd5d316b4894ec20dcec (diff)
Merge git://git.denx.de/u-boot-x86
Diffstat (limited to 'drivers/timer/tsc_timer.c')
-rw-r--r--drivers/timer/tsc_timer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/timer/tsc_timer.c b/drivers/timer/tsc_timer.c
index 6473de20f13..da7c812908b 100644
--- a/drivers/timer/tsc_timer.c
+++ b/drivers/timer/tsc_timer.c
@@ -341,7 +341,7 @@ static int tsc_timer_get_count(struct udevice *dev, u64 *count)
return 0;
}
-static void tsc_timer_ensure_setup(bool stop)
+static void tsc_timer_ensure_setup(bool early)
{
if (gd->arch.tsc_base)
return;
@@ -362,8 +362,8 @@ static void tsc_timer_ensure_setup(bool stop)
if (fast_calibrate)
goto done;
- if (stop)
- panic("TSC frequency is ZERO");
+ if (early)
+ fast_calibrate = CONFIG_X86_TSC_TIMER_EARLY_FREQ;
else
return;