diff --git a/arch/x86_64/src/intel64/intel64_freq.c b/arch/x86_64/src/intel64/intel64_freq.c index bdf00251799..7cfd1ad58c6 100644 --- a/arch/x86_64/src/intel64/intel64_freq.c +++ b/arch/x86_64/src/intel64/intel64_freq.c @@ -150,10 +150,12 @@ void x86_64_timer_calibrate_freq(void) g_x86_64_timer_freq = CONFIG_ARCH_INTEL64_APIC_FREQ_KHZ * 1000ul; #endif +#ifdef CONFIG_ARCH_INTEL64_HAVE_TSC if (g_x86_64_timer_freq == 0) { /* The TSC frequency is not available */ PANIC(); } +#endif }