All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Minor updates to powernow-k8
@ 2007-05-14 21:21 Mark Langsdorf
  2007-05-14 21:53 ` Dave Jones
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Langsdorf @ 2007-05-14 21:21 UTC (permalink / raw)
  To: cpufreq

I've submitted the following patches before, but they don't
seem to have made it into the tree yet.

Update the processor ID check to support newer RevF Turions
and indicate number of processors and cores more cleanly
in startup messages.

Signed-Off-By: Mark Langsdorf <mark.langsdorf@amd.com>
--- arch/i386/kernel/cpu/cpufreq/powernow-k8.c.old	2007-05-14 
16:15:34.000000000 -0500
+++ arch/i386/kernel/cpu/cpufreq/powernow-k8.c	2007-05-14 
16:16:11.000000000 -0500
@@ -1330,8 +1330,8 @@ static int __cpuinit powernowk8_init(voi

  	if (supported_cpus == num_online_cpus()) {
  		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);
  	}

--- arch/i386/kernel/cpu/cpufreq/powernow-k8.h.old	2007-05-14 
16:15:44.000000000 -0500
+++ arch/i386/kernel/cpu/cpufreq/powernow-k8.h	2007-05-14 
16:16:43.000000000 -0500
@@ -46,7 +46,7 @@ struct powernow_k8_data {
  #define CPUID_XFAM			0x0ff00000	/* extended family */
  #define CPUID_XFAM_K8			0
  #define CPUID_XMOD			0x000f0000	/* extended model */
-#define CPUID_XMOD_REV_G		0x00060000
+#define CPUID_XMOD_REV_G		0x00080000
  #define CPUID_XFAM_10H 			0x00100000	/* family 0x10 */
  #define CPUID_USE_XFAM_XMOD		0x00000f00
  #define CPUID_GET_MAX_CAPABILITIES	0x80000000

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

end of thread, other threads:[~2007-05-14 23:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-14 21:21 [PATCH] Minor updates to powernow-k8 Mark Langsdorf
2007-05-14 21:53 ` Dave Jones
2007-05-14 21:55   ` Langsdorf, Mark
2007-05-14 23:04     ` 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.