diff options
author | Mark Langsdorf <mark.langsdorf@amd.com> | 2007-04-30 15:15:05 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2007-04-30 15:48:29 -0400 |
commit | 2e4976206396274cf66590328c6913811c271495 (patch) | |
tree | 710b58f97b17419c4fab2be355f8d384370b6156 /arch | |
parent | b96e80e3237777e5d7994a720ab722eb8f7edc60 (diff) |
[CPUFREQ] Report the number of processors in PowerNow-k8 correctly
The PowerNow! driver for Opteron reports the number of cores
in the system, but claims to report the number of processors.
Fix this minor cosmetic bug.
Signed-off-by: Bhavana Nagendra <bhavana.nagendra@amd.com>
Acked-by: Mark Langsdorf <mark.langsdorf@amd.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/powernow-k8.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c index fe3b67005ebb..7cf3d207b6b3 100644 --- a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c +++ b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c | |||
@@ -661,7 +661,8 @@ static int fill_powernow_table(struct powernow_k8_data *data, struct pst_s *pst, | |||
661 | 661 | ||
662 | dprintk("cfid 0x%x, cvid 0x%x\n", data->currfid, data->currvid); | 662 | dprintk("cfid 0x%x, cvid 0x%x\n", data->currfid, data->currvid); |
663 | data->powernow_table = powernow_table; | 663 | data->powernow_table = powernow_table; |
664 | print_basics(data); | 664 | if (first_cpu(cpu_core_map[data->cpu]) == data->cpu) |
665 | print_basics(data); | ||
665 | 666 | ||
666 | for (j = 0; j < data->numps; j++) | 667 | for (j = 0; j < data->numps; j++) |
667 | if ((pst[j].fid==data->currfid) && (pst[j].vid==data->currvid)) | 668 | if ((pst[j].fid==data->currfid) && (pst[j].vid==data->currvid)) |
@@ -814,7 +815,8 @@ static int powernow_k8_cpu_init_acpi(struct powernow_k8_data *data) | |||
814 | 815 | ||
815 | /* fill in data */ | 816 | /* fill in data */ |
816 | data->numps = data->acpi_data.state_count; | 817 | data->numps = data->acpi_data.state_count; |
817 | print_basics(data); | 818 | if (first_cpu(cpu_core_map[data->cpu]) == data->cpu) |
819 | print_basics(data); | ||
818 | powernow_k8_acpi_pst_values(data, 0); | 820 | powernow_k8_acpi_pst_values(data, 0); |
819 | 821 | ||
820 | /* notify BIOS that we exist */ | 822 | /* notify BIOS that we exist */ |