ACPI: Fix thermal shutdowns

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, August 15, 2008 - 10:01 am

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9f497b...
Commit:     9f497bcc695fb828da023d74ad3c966b1e58ad21
Parent:     b635acec48bcaa9183fcbf4e3955616b0d4119b5
Author:     Milan Broz <mbroz@redhat.com>
AuthorDate: Tue Aug 12 17:48:27 2008 +0200
Committer:  Andi Kleen <ak@linux.intel.com>
CommitDate: Fri Aug 15 03:29:29 2008 +0200

    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>
---
 drivers/acpi/processor_perflib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c
index 0133af4..80e3209 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");
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ACPI: Fix thermal shutdowns, Linux Kernel Mailing ..., (Fri Aug 15, 10:01 am)