ACPI: Fix thermal shutdowns
commit536e90ea2fb9552a9e17f8ca7ea83043f4240fd2
authorMilan Broz <mbroz@redhat.com>
Wed, 3 Sep 2008 23:41:12 +0000 (3 19:41 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Oct 2008 03:22:48 +0000 (8 20:22 -0700)
tree37e2577c59cf836420e734130f77e2287526e6cc
parentcf1b2b7e7d2603bc99ce39b2f6f362afa4389a95
ACPI: Fix thermal shutdowns

commit 9f497bcc695fb828da023d74ad3c966b1e58ad21 upstream

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>
Cc: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/acpi/processor_perflib.c