thermal, cpufreq: Fix build when CPU_FREQ_TABLE isn't configured