Переглянути джерело

Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq

* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq:
  [CPUFREQ] pcc-cpufreq: don't load driver if get_freq fails during init.
Linus Torvalds 14 роки тому
батько
коміт
cfd8065246
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c

+ 1 - 1
arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c

@@ -195,7 +195,7 @@ static unsigned int pcc_get_freq(unsigned int cpu)
 cmd_incomplete:
 	iowrite16(0, &pcch_hdr->status);
 	spin_unlock(&pcc_lock);
-	return -EINVAL;
+	return 0;
 }
 
 static int pcc_cpufreq_target(struct cpufreq_policy *policy,