All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][retry 3] Report the number of processors in PowerNow-k8 correctly
@ 2007-04-05 22:07 Mark Langsdorf
  2007-04-06 23:35 ` Dave Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Langsdorf @ 2007-04-05 22:07 UTC (permalink / raw)
  To: cpufreq

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>

--- linux-2.6.20/arch/i386/kernel/cpu/cpufreq/powernow-k8.c.old
2007-04-05 15:43:36.000000000 -0500
+++ linux-2.6.20/arch/i386/kernel/cpu/cpufreq/powernow-k8.c	2007-04-05
15:45:03.000000000 -0500
@@ -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))
@@ -814,7 +815,8 @@ static int powernow_k8_cpu_init_acpi(str

  	/* fill in data */
  	data->numps = data->acpi_data.state_count;
-	print_basics(data);
+	if (first_cpu(cpu_core_map[data->cpu]) == data->cpu)
+		print_basics(data);
  	powernow_k8_acpi_pst_values(data, 0);

  	/* notify BIOS that we exist */

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

* Re: [PATCH][retry 3] Report the number of processors in PowerNow-k8 correctly
  2007-04-05 22:07 [PATCH][retry 3] Report the number of processors in PowerNow-k8 correctly Mark Langsdorf
@ 2007-04-06 23:35 ` Dave Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Jones @ 2007-04-06 23:35 UTC (permalink / raw)
  To: Mark Langsdorf; +Cc: cpufreq

On Thu, Apr 05, 2007 at 05:07:51PM -0500, Mark Langsdorf wrote:
 > 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>

Time for retry #4.

 > --- linux-2.6.20/arch/i386/kernel/cpu/cpufreq/powernow-k8.c.old
 > 2007-04-05 15:43:36.000000000 -0500
 > +++ linux-2.6.20/arch/i386/kernel/cpu/cpufreq/powernow-k8.c	2007-04-05
 > 15:45:03.000000000 -0500
 > @@ -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;

Note in the two lines above that they begin space space tab.
That should be space tab. Thunderbird took the liberty of adding
some extras for you.

 > -	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))
 > @@ -814,7 +815,8 @@ static int powernow_k8_cpu_init_acpi(str
 > 
 >  	/* fill in data */
 >  	data->numps = data->acpi_data.state_count;
 > -	print_basics(data);
 > +	if (first_cpu(cpu_core_map[data->cpu]) == data->cpu)
 > +		print_basics(data);
 >  	powernow_k8_acpi_pst_values(data, 0);
 > 
 >  	/* notify BIOS that we exist */

Same here.

I know this patch is small enough that I could have just hacked in the
changes myself, but I'd really rather you keep fighting so that I
don't have to hand-apply future patches too :)
(Especially in case they end up being larger than this one)

If you want to keep sending retries to me off-list, I'm ok with that.
I think we can spare the list the retransmits.

	Dave

-- 
http://www.codemonkey.org.uk

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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-05 22:07 [PATCH][retry 3] Report the number of processors in PowerNow-k8 correctly Mark Langsdorf
2007-04-06 23:35 ` 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.