summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorMilan Broz <mbroz@redhat.com>2008-08-12 17:48:27 +0200
committerAndi Kleen <ak@linux.intel.com>2008-08-15 03:29:29 +0200
commit9f497bcc695fb828da023d74ad3c966b1e58ad21 (patch)
tree5abc756eeb4003ebd78cfdf7290d4801b70c1e5b /drivers/acpi
parentb635acec48bcaa9183fcbf4e3955616b0d4119b5 (diff)
downloadkernel-crypto-9f497bcc695fb828da023d74ad3c966b1e58ad21.tar.gz
kernel-crypto-9f497bcc695fb828da023d74ad3c966b1e58ad21.tar.xz
kernel-crypto-9f497bcc695fb828da023d74ad3c966b1e58ad21.zip
ACPI: Fix thermal shutdowns
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 <mbroz@redhat.com> Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/processor_perflib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c
index 0133af49cf0..80e32093e97 100644
--- a/drivers/acpi/processor_perflib.c
+++ b/drivers/acpi/processor_perflib.c
@@ -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");