diff options
author | Dave Jones <davej@redhat.com> | 2005-07-29 15:55:40 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2005-07-29 15:55:40 -0400 |
commit | 094ce7fde493a1196b8152f9f9e73c20e24a2b05 (patch) | |
tree | 66398ddc7ee59460fe3313b626620907d9999731 | |
parent | 2bcad935a3bb149833bf249e6b159f22a90d6218 (diff) |
arch/i386/kernel/cpu/cpufreq/powernow-k8.c: In function `powernow_k8_cpu_init_acpi':
arch/i386/kernel/cpu/cpufreq/powernow-k8.c:740: warning: unused variable `vid'
arch/i386/kernel/cpu/cpufreq/powernow-k8.c:739: warning: unused variable `fid'
arch/i386/kernel/cpu/cpufreq/powernow-k8.c:743: warning: unused variable `vid'
arch/i386/kernel/cpu/cpufreq/powernow-k8.c:742: warning: unused variable `fid'
arch/i386/kernel/cpu/cpufreq/powernow-k8.c:746: `fid' undeclared (first use in this function)
arch/i386/kernel/cpu/cpufreq/powernow-k8.c:746: `vid' undeclared (first use in this function)
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Dave Jones <davej@redhat.com>
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/powernow-k8.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c index de5deebc0154..ab6e0611303d 100644 --- a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c +++ b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c | |||
@@ -735,12 +735,15 @@ static int powernow_k8_cpu_init_acpi(struct powernow_k8_data *data) | |||
735 | } | 735 | } |
736 | 736 | ||
737 | for (i = 0; i < data->acpi_data.state_count; i++) { | 737 | for (i = 0; i < data->acpi_data.state_count; i++) { |
738 | if (data->exttype) { | 738 | u32 fid; |
739 | u32 fid = data->acpi_data.states[i].status & FID_MASK; | 739 | u32 vid; |
740 | u32 vid = (data->acpi_data.states[i].status >> VID_SHIFT) & VID_MASK; | 740 | |
741 | if (data->exttype) { | ||
742 | fid = data->acpi_data.states[i].status & FID_MASK; | ||
743 | vid = (data->acpi_data.states[i].status >> VID_SHIFT) & VID_MASK; | ||
741 | } else { | 744 | } else { |
742 | u32 fid = data->acpi_data.states[i].control & FID_MASK; | 745 | fid = data->acpi_data.states[i].control & FID_MASK; |
743 | u32 vid = (data->acpi_data.states[i].control >> VID_SHIFT) & VID_MASK; | 746 | vid = (data->acpi_data.states[i].control >> VID_SHIFT) & VID_MASK; |
744 | } | 747 | } |
745 | 748 | ||
746 | dprintk(" %d : fid 0x%x, vid 0x%x\n", i, fid, vid); | 749 | dprintk(" %d : fid 0x%x, vid 0x%x\n", i, fid, vid); |