소스 검색

Pull bug3410 into release branch

Len Brown 19 년 전
부모
커밋
7b3dad3d85
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      drivers/acpi/processor_thermal.c

+ 2 - 2
drivers/acpi/processor_thermal.c

@@ -102,8 +102,8 @@ static int cpu_has_cpufreq(unsigned int cpu)
 {
 {
 	struct cpufreq_policy policy;
 	struct cpufreq_policy policy;
 	if (!acpi_thermal_cpufreq_is_init || cpufreq_get_policy(&policy, cpu))
 	if (!acpi_thermal_cpufreq_is_init || cpufreq_get_policy(&policy, cpu))
-		return -ENODEV;
-	return 0;
+		return 0;
+	return 1;
 }
 }
 
 
 static int acpi_thermal_cpufreq_increase(unsigned int cpu)
 static int acpi_thermal_cpufreq_increase(unsigned int cpu)