Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] Correct bound checking from the value returned from _PPC method.

processor_perflib.c::acpi_processor_ppc_notifier() check if the value
returned by the processor's _PPC method is 0 and return failed if so.
This is wrong since 0 indicate that the bios think the processor can go
to the highest frequency. This patch for example fix the HP NX 6125 to
allow its highest frequency to be available.

Signed-off-by: Bruno Ducrot <ducrot@poupinou.org>
Cc: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Dave Jones and committed by
Linus Torvalds
0916bd3e 5261d661

+1 -3
+1 -3
drivers/acpi/processor_perflib.c
··· 83 83 goto out; 84 84 85 85 ppc = (unsigned int)pr->performance_platform_limit; 86 - if (!ppc) 87 - goto out; 88 86 89 - if (ppc > pr->performance->state_count) 87 + if (ppc >= pr->performance->state_count) 90 88 goto out; 91 89 92 90 cpufreq_verify_within_limits(policy, 0,