public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix compilation error in amd.c when SMP is not set
@ 2009-07-31 14:40 Nicolas Palix
  2009-07-31 17:12 ` H. Peter Anvin
  2009-08-01  7:47 ` Borislav Petkov
  0 siblings, 2 replies; 4+ messages in thread
From: Nicolas Palix @ 2009-07-31 14:40 UTC (permalink / raw)
  To: x86, Andreas Herrmann, H. Peter Anvin, Ingo Molnar, linux-kernel

The function amd_fixup_dcm requires SMP to be set
but it is called only when CONFIG_X86_HT is set.

It thus defined only if CONFIG_X86_HT is set.

Signed-off-by: Nicolas Palix <npalix@diku.dk>
---
 arch/x86/kernel/cpu/amd.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index e06fa7c..1c15916 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -256,6 +256,7 @@ static int __cpuinit nearby_node(int apicid)
  * Assumption 2: Mixed systems with both single-node and dual-node
  *               processors are not supported.
  */
+#ifdef CONFIG_X86_HT
 static void __cpuinit amd_fixup_dcm(struct cpuinfo_x86 *c)
 {
 	u32 t, cpn;
@@ -299,6 +300,7 @@ static void __cpuinit amd_fixup_dcm(struct cpuinfo_x86 *c)
 	 /* fixup core id to be in range from 0 to cpn */
 	c->cpu_core_id = c->cpu_core_id % cpn;
 }
+#endif
 
 /*
  * On a AMD dual core setup the lower bits of the APIC id distingush the cores.
-- 
1.6.0.4


-- 
Nicolas Palix

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

* Re: [PATCH] Fix compilation error in amd.c when SMP is not set
  2009-07-31 14:40 [PATCH] Fix compilation error in amd.c when SMP is not set Nicolas Palix
@ 2009-07-31 17:12 ` H. Peter Anvin
  2009-07-31 21:36   ` Nicolas Palix
  2009-08-01  7:47 ` Borislav Petkov
  1 sibling, 1 reply; 4+ messages in thread
From: H. Peter Anvin @ 2009-07-31 17:12 UTC (permalink / raw)
  To: Nicolas Palix; +Cc: x86, Andreas Herrmann, Ingo Molnar, linux-kernel

On 07/31/2009 07:40 AM, Nicolas Palix wrote:
> The function amd_fixup_dcm requires SMP to be set
> but it is called only when CONFIG_X86_HT is set.
> 
> It thus defined only if CONFIG_X86_HT is set.
> 
> Signed-off-by: Nicolas Palix <npalix@diku.dk>

I'm confused... I don't see this function anywhere in my trees, nor do I
see git revision e06fa7c that this was based on either in my trees or
the stable trees.  What is the base rev of this patch?

	-hpa

-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.


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

* Re: [PATCH] Fix compilation error in amd.c when SMP is not set
  2009-07-31 17:12 ` H. Peter Anvin
@ 2009-07-31 21:36   ` Nicolas Palix
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Palix @ 2009-07-31 21:36 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: x86, Andreas Herrmann, Ingo Molnar, linux-kernel

On Friday 31 July 2009 19:12:05 H. Peter Anvin wrote:
> On 07/31/2009 07:40 AM, Nicolas Palix wrote:
> > The function amd_fixup_dcm requires SMP to be set
> > but it is called only when CONFIG_X86_HT is set.
> > 
> > It thus defined only if CONFIG_X86_HT is set.
> > 
> > Signed-off-by: Nicolas Palix <npalix@diku.dk>
> 
> I'm confused... I don't see this function anywhere in my trees, nor do I
> see git revision e06fa7c that this was based on either in my trees or
> the stable trees.  What is the base rev of this patch?
> 
> 	-hpa
> 

It's in next, commit 29160dfe027e90532bd60a97db1dd158d996be8b.

It's broken since the 30 as also reported by
http://kisskb.ellerman.id.au/kisskb/target/629/


-- 
Nicolas Palix

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

* Re: [PATCH] Fix compilation error in amd.c when SMP is not set
  2009-07-31 14:40 [PATCH] Fix compilation error in amd.c when SMP is not set Nicolas Palix
  2009-07-31 17:12 ` H. Peter Anvin
@ 2009-08-01  7:47 ` Borislav Petkov
  1 sibling, 0 replies; 4+ messages in thread
From: Borislav Petkov @ 2009-08-01  7:47 UTC (permalink / raw)
  To: Nicolas Palix
  Cc: x86, Andreas Herrmann, H. Peter Anvin, Ingo Molnar, linux-kernel,
	borislav.petkov

On Fri, Jul 31, 2009 at 04:40:25PM +0200, Nicolas Palix wrote:
> The function amd_fixup_dcm requires SMP to be set
> but it is called only when CONFIG_X86_HT is set.
> 
> It thus defined only if CONFIG_X86_HT is set.
> 
> Signed-off-by: Nicolas Palix <npalix@diku.dk>

Thanks, I'll integrate it into the original patch:
29160dfe027e90532bd60a97db1dd158d996be8b.

-- 
Regards/Gruss,
    Boris.

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

end of thread, other threads:[~2009-08-01  7:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-31 14:40 [PATCH] Fix compilation error in amd.c when SMP is not set Nicolas Palix
2009-07-31 17:12 ` H. Peter Anvin
2009-07-31 21:36   ` Nicolas Palix
2009-08-01  7:47 ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox