Skip to contentSkip to conversation

Report the number of processors in PowerNow-k8 correctly

PATCH New Mark Langsdorf 1 participant 1 message Mar 27, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

i386/kernel/cpu/cpufreq/powernow-k8.c renamed from i386/kernel/cpu/cpufreq/powernow-k8.c.old +2 -1
@@ -661,7 +661,8 @@ static int fill_powernow_table(struct po
 
 	dprintk("cfid 0x%x, cvid 0x%x\n", data->currfid, data->currvid);
 	data->powernow_table = powernow_table;
-	print_basics(data);
+	if (first_cpu(cpu_core_map[data->cpu]) == data->cpu)
+		print_basics(data);
 
 	for (j = 0; j < data->numps; j++)
 		if ((pst[j].fid==data->currfid) && (pst[j].vid==data->currvid))