diff options
author | Guillaume Chazarain <guichaz@yahoo.fr> | 2007-01-02 13:58:13 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2007-01-02 23:38:39 -0500 |
commit | 76ff28c941e73a0de0db12bd5009124e8dc010e7 (patch) | |
tree | eef82fbfcec7bbdc4c29d12ae0930aaaa01ddc79 /arch/i386/kernel/cpu/cpufreq | |
parent | 24ebead82bbf9785909d4cf205e2df5e9ff7da32 (diff) |
[CPUFREQ] Uninitialized use of cmd.val in arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c:acpi_cpufreq_target()
cmd.val was used uninitialized on the line below.
Signed-off-by: Guillaume Chazarain <guichaz@yahoo.fr>
Acked-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/i386/kernel/cpu/cpufreq')
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c b/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c index 563dcc82b902..10baa3501ed3 100644 --- a/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c +++ b/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c | |||
@@ -420,6 +420,7 @@ static int acpi_cpufreq_target(struct cpufreq_policy *policy, | |||
420 | msr = | 420 | msr = |
421 | (u32) perf->states[next_perf_state]. | 421 | (u32) perf->states[next_perf_state]. |
422 | control & INTEL_MSR_RANGE; | 422 | control & INTEL_MSR_RANGE; |
423 | cmd.val = get_cur_val(online_policy_cpus); | ||
423 | cmd.val = (cmd.val & ~INTEL_MSR_RANGE) | msr; | 424 | cmd.val = (cmd.val & ~INTEL_MSR_RANGE) | msr; |
424 | break; | 425 | break; |
425 | case SYSTEM_IO_CAPABLE: | 426 | case SYSTEM_IO_CAPABLE: |