All of lore.kernel.org
 help / color / mirror / Atom feed
* Report the number of processors in PowerNow-k8 correctly
@ 2007-03-16 15:50 Langsdorf, Mark
  2007-03-22 20:56 ` Dave Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Langsdorf, Mark @ 2007-03-16 15:50 UTC (permalink / raw)
  To: cpufreq

[-- Attachment #1: Type: text/plain, Size: 269 bytes --]

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>

[-- Attachment #2: Correct_number_of_procs.patch --]
[-- Type: application/octet-stream, Size: 623 bytes --]

--- linux-2.6.18.x86_64/arch/i386/kernel/cpu/cpufreq/powernow-k8.c.orig	2007-03-15 05:53:12.000000000 -0400
+++ linux-2.6.18.x86_64/arch/i386/kernel/cpu/cpufreq/powernow-k8.c	2007-03-17 04:40:49.000000000 -0400
@@ -1425,8 +1425,8 @@ static int __cpuinit powernowk8_init(voi
 			}
 		}
 		printk(KERN_INFO PFX "Found %d %s "
-			"processors (" VERSION ")\n", supported_cpus,
-			boot_cpu_data.x86_model_id);
+			"processors (%d cpu cores) (" VERSION ")\n", supported_cpus/cpu_data[0].booted_cores,
+			boot_cpu_data.x86_model_id, supported_cpus);
 		return cpufreq_register_driver(&cpufreq_amd64_driver);
 	}
 

[-- Attachment #3: Type: text/plain, Size: 147 bytes --]

_______________________________________________
Cpufreq mailing list
Cpufreq@lists.linux.org.uk
http://lists.linux.org.uk/mailman/listinfo/cpufreq

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-22 20:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-16 15:50 Report the number of processors in PowerNow-k8 correctly Langsdorf, Mark
2007-03-22 20:56 ` Dave Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.