|
@@ -60,7 +60,6 @@ enum {
|
|
|
};
|
|
|
|
|
|
#define INTEL_MSR_RANGE (0xffff)
|
|
|
-#define CPUID_6_ECX_APERFMPERF_CAPABILITY (0x1)
|
|
|
|
|
|
struct acpi_cpufreq_data {
|
|
|
struct acpi_processor_performance *acpi_data;
|
|
@@ -731,12 +730,8 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy)
|
|
|
acpi_processor_notify_smm(THIS_MODULE);
|
|
|
|
|
|
/* Check for APERF/MPERF support in hardware */
|
|
|
- if (c->x86_vendor == X86_VENDOR_INTEL && c->cpuid_level >= 6) {
|
|
|
- unsigned int ecx;
|
|
|
- ecx = cpuid_ecx(6);
|
|
|
- if (ecx & CPUID_6_ECX_APERFMPERF_CAPABILITY)
|
|
|
- acpi_cpufreq_driver.getavg = get_measured_perf;
|
|
|
- }
|
|
|
+ if (cpu_has(c, X86_FEATURE_APERFMPERF))
|
|
|
+ acpi_cpufreq_driver.getavg = get_measured_perf;
|
|
|
|
|
|
dprintk("CPU%u - ACPI performance management activated.\n", cpu);
|
|
|
for (i = 0; i < perf->state_count; i++)
|