]> git.baikalelectronics.ru Git - kernel.git/commit
[CPUFREQ] Fix the bug in duplicate freq elimination code in acpi-cpufreq
authorVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Tue, 14 Nov 2006 01:47:44 +0000 (17:47 -0800)
committerDave Jones <davej@redhat.com>
Tue, 12 Dec 2006 22:20:50 +0000 (17:20 -0500)
commit940e61aec408af6e02312a449bd18c453b053135
tree5ac8313702b6495171758763eb7bddd6d1b6f81a
parent62eeeecfad1e7f311a1ed7eece324f2c00bf5587
[CPUFREQ] Fix the bug in duplicate freq elimination code in acpi-cpufreq

Fix the bug in duplicate states elimination in acpi-cpufreq.

Bug: Due to duplicate state elimiation in the loop earlier, the number
of valid_states can be less than perf->state_count, in which case
freq_table was ending up with some garbage/uninitialized entries
in the table.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
From:  Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Dave Jones <davej@redhat.com>
arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c