Re: [PATCH 1/1] cpufreq: intel_pstate: skip the driver if ACPI has power mgmt option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/20/2013 10:27 PM, Adrian Huang wrote:
  static int __init intel_pstate_init(void)
  {
  	int cpu, rc = 0;
@@ -708,6 +779,15 @@ static int __init intel_pstate_init(void)
  	if (no_load)
  		return -ENODEV;

+	if (!acpi_disabled) {
+		/*
+		 * Check if the platform has its own power management modes.
+		 * If so, the pstate cpufreq driver will be ignored.
+		 */
+		if (intel_pstate_platform_pwr_mgmt_exists())
+			return 0;

Please return -ENODEV here instead of 0

+	}
+
  	id = x86_match_cpu(intel_pstate_cpu_ids);
  	if (!id)
  		return -ENODEV;


--
To unsubscribe from this list: send the line "unsubscribe cpufreq" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Devel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Forum]     [Linux SCSI]

  Powered by Linux