]> Git Repo - linux.git/commitdiff
ACPI: Fix thermal shutdowns
authorMilan Broz <[email protected]>
Tue, 12 Aug 2008 15:48:27 +0000 (17:48 +0200)
committerAndi Kleen <[email protected]>
Fri, 15 Aug 2008 01:29:29 +0000 (03:29 +0200)
Do not use unsigned int if there is test for negative number...

See drivers/acpi/processor_perflib.c
  static unsigned int ignore_ppc = -1;
...
  if (event == CPUFREQ_START && ignore_ppc <= 0) {
       ignore_ppc = 0;
...

Signed-off-by: Milan Broz <[email protected]>
Signed-off-by: Andi Kleen <[email protected]>
drivers/acpi/processor_perflib.c

index 0133af49cf06851ebb60d756404f48938b299c6f..80e32093e977c6a3c5427e0746c1732a2282e017 100644 (file)
@@ -70,7 +70,7 @@ static DEFINE_MUTEX(performance_mutex);
  *  0 -> cpufreq low level drivers initialized -> consider _PPC values
  *  1 -> ignore _PPC totally -> forced by user through boot param
  */
-static unsigned int ignore_ppc = -1;
+static int ignore_ppc = -1;
 module_param(ignore_ppc, uint, 0644);
 MODULE_PARM_DESC(ignore_ppc, "If the frequency of your machine gets wrongly" \
                 "limited by BIOS, this should help");
This page took 0.063909 seconds and 4 git commands to generate.