]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/i386/tsc.c
xnu-1486.2.11.tar.gz
[apple/xnu.git] / osfmk / i386 / tsc.c
index 6744a9097582329859e7f47e4b74143425c30117..0a7f882a3ec4f58330a9ba14d9c6ad429de68d02 100644 (file)
@@ -142,13 +142,8 @@ tsc_init(void)
         */
        busFreq = EFI_FSB_frequency();
 
-       if (cpuid_info()->cpuid_family != CPU_FAMILY_PENTIUM_M) {
-               panic("tsc_init: unknown CPU family: 0x%X\n",
-                       cpuid_info()->cpuid_family);
-       }
-
-       switch (cpuid_info()->cpuid_model) {
-       case CPUID_MODEL_NEHALEM: {
+       switch (cpuid_cpufamily()) {
+       case CPUFAMILY_INTEL_NEHALEM: {
                uint64_t cpu_mhz;
                uint64_t msr_flex_ratio;
                uint64_t msr_platform_info;