We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f99fd22 commit 655e52dCopy full SHA for 655e52d
arch/x86/kernel/tsc.c
@@ -23,6 +23,7 @@
23
#include <asm/x86_init.h>
24
#include <asm/geode.h>
25
#include <asm/apic.h>
26
+#include <asm/intel-family.h>
27
28
unsigned int __read_mostly cpu_khz; /* TSC clocks / usec, not used here */
29
EXPORT_SYMBOL(cpu_khz);
@@ -686,11 +687,11 @@ unsigned long native_calibrate_tsc(void)
686
687
688
if (crystal_khz == 0) {
689
switch (boot_cpu_data.x86_model) {
- case 0x4E: /* SKL */
690
- case 0x5E: /* SKL */
+ case INTEL_FAM6_SKYLAKE_MOBILE:
691
+ case INTEL_FAM6_SKYLAKE_DESKTOP:
692
crystal_khz = 24000; /* 24.0 MHz */
693
break;
- case 0x5C: /* BXT */
694
+ case INTEL_FAM6_ATOM_GOLDMONT:
695
crystal_khz = 19200; /* 19.2 MHz */
696
697
}
0 commit comments