Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hwpmc/hwpmc_intel.c
| Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | pmc_intel_initialize(void) | ||||
| family = CPUID_TO_FAMILY(cpu_id); | family = CPUID_TO_FAMILY(cpu_id); | ||||
| model = CPUID_TO_MODEL(cpu_id); | model = CPUID_TO_MODEL(cpu_id); | ||||
| stepping = CPUID_TO_STEPPING(cpu_id); | stepping = CPUID_TO_STEPPING(cpu_id); | ||||
| snprintf(pmc_cpuid, sizeof(pmc_cpuid), "GenuineIntel-%d-%02X-%X", | snprintf(pmc_cpuid, sizeof(pmc_cpuid), "GenuineIntel-%d-%02X-%X", | ||||
| family, model, stepping); | family, model, stepping); | ||||
| switch (cpu_id & 0xF00) { | switch (cpu_id & 0xF00) { | ||||
| case 0x600: /* Pentium Pro, Celeron, Pentium II & III */ | case 0x600: | ||||
| switch (model) { | switch (model) { | ||||
| case 0xE: | case 0xE: | ||||
| cputype = PMC_CPU_INTEL_CORE; | cputype = PMC_CPU_INTEL_CORE; | ||||
| break; | break; | ||||
| case 0xF: | case 0xF: | ||||
| /* Per Intel document 315338-020. */ | /* Per Intel document 315338-020. */ | ||||
| if (stepping == 0x7) { | if (stepping == 0x7) { | ||||
| cputype = PMC_CPU_INTEL_CORE; | cputype = PMC_CPU_INTEL_CORE; | ||||
| ▲ Show 20 Lines • Show All 236 Lines • Show Last 20 Lines | |||||