ACPI / CPPC: Don't return on CPPC probe failure
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Thu, 1 Sep 2016 20:37:09 +0000 (13:37 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Sep 2016 21:02:14 +0000 (23:02 +0200)
It is still possible to continue even CPPC data is invalid or missing.

Suggested-by: Alexey Klimov <alexey.klimov@arm.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_driver.c

index f5c92be729878ac6c561a0c72e766ab8ba4036e5..8f8552a19e63fed62db9072eb18f5036f29c0295 100644 (file)
@@ -246,7 +246,7 @@ static int __acpi_processor_start(struct acpi_device *device)
 
        result = acpi_cppc_processor_probe(pr);
        if (result && !IS_ENABLED(CONFIG_ACPI_CPU_FREQ_PSS))
-               return -ENODEV;
+               dev_warn(&device->dev, "CPPC data invalid or not present\n");
 
        if (!cpuidle_get_driver() || cpuidle_get_driver() == &acpi_idle_driver)
                acpi_processor_power_init(pr);