aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c b/arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c
index ce7cde713e71..01bd25c3c7ca 100644
--- a/arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c
+++ b/arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c
@@ -397,13 +397,17 @@ static int __init pcc_cpufreq_probe(void)
397 struct pcc_memory_resource *mem_resource; 397 struct pcc_memory_resource *mem_resource;
398 struct pcc_register_resource *reg_resource; 398 struct pcc_register_resource *reg_resource;
399 union acpi_object *out_obj, *member; 399 union acpi_object *out_obj, *member;
400 acpi_handle handle, osc_handle; 400 acpi_handle handle, osc_handle, pcch_handle;
401 int ret = 0; 401 int ret = 0;
402 402
403 status = acpi_get_handle(NULL, "\\_SB", &handle); 403 status = acpi_get_handle(NULL, "\\_SB", &handle);
404 if (ACPI_FAILURE(status)) 404 if (ACPI_FAILURE(status))
405 return -ENODEV; 405 return -ENODEV;
406 406
407 status = acpi_get_handle(handle, "PCCH", &pcch_handle);
408 if (ACPI_FAILURE(status))
409 return -ENODEV;
410
407 status = acpi_get_handle(handle, "_OSC", &osc_handle); 411 status = acpi_get_handle(handle, "_OSC", &osc_handle);
408 if (ACPI_SUCCESS(status)) { 412 if (ACPI_SUCCESS(status)) {
409 ret = pcc_cpufreq_do_osc(&osc_handle); 413 ret = pcc_cpufreq_do_osc(&osc_handle);