Re: x86/non-x86: percpu, node ids, apic ids x86.git fixup

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Luck, Tony <tony.luck@...>
Cc: Mike Travis <travis@...>, Geert Uytterhoeven <Geert.Uytterhoeven@...>, Linus Torvalds <torvalds@...>, Thomas Gleixner <tglx@...>, Linux Kernel Development <linux-kernel@...>, Linux/PPC Development <linuxppc-dev@...>, <linux-ia64@...>, <sparclinux@...>
Date: Wednesday, January 30, 2008 - 3:46 pm

* Luck, Tony <tony.luck@intel.com> wrote:


ah, that was the vital clue. The patch below makes the small memory 
model only defined on SMP, and makes the config build/link fine here. 
Does this build and boot on your box?

	Ingo

------------>
Subject: ia64: build fix #3
From: Ingo Molnar <mingo@elte.hu>

Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 include/asm-ia64/percpu.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-x86.q/include/asm-ia64/percpu.h
===================================================================
--- linux-x86.q.orig/include/asm-ia64/percpu.h
+++ linux-x86.q/include/asm-ia64/percpu.h
@@ -15,12 +15,12 @@
 
 #include <linux/threads.h>
 
+#ifdef CONFIG_SMP
+
 #ifdef HAVE_MODEL_SMALL_ATTRIBUTE
 # define PER_CPU_ATTRIBUTES	__attribute__((__model__ (__small__)))
 #endif
 
-#ifdef CONFIG_SMP
-
 #define __my_cpu_offset	__ia64_per_cpu_var(local_per_cpu_offset)
 
 extern void *per_cpu_init(void);

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: x86/non-x86: percpu, node ids, apic ids x86.git fixup, Geert Uytterhoeven, (Wed Jan 30, 11:27 am)
Re: x86/non-x86: percpu, node ids, apic ids x86.git fixup, Olof Johansson, (Wed Jan 30, 2:35 pm)
Re: x86/non-x86: percpu, node ids, apic ids x86.git fixup, Ingo Molnar, (Wed Jan 30, 3:46 pm)
Re: x86/non-x86: percpu, node ids, apic ids x86.git fixup, Olof Johansson, (Wed Jan 30, 3:13 pm)