login
Header Space

 
 

Re: [PATCH 00/10] percpu: Per cpu code simplification V3

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <travis@...>
Cc: Andrew Morton <akpm@...>, Andi Kleen <ak@...>, Christoph Lameter <clameter@...>, Jack Steiner <steiner@...>, <linux-mm@...>, <linux-kernel@...>
Date: Tuesday, January 8, 2008 - 5:07 am

* travis@sgi.com <travis@sgi.com> wrote:


thanks, i've picked up the x86 and core bits, for testing.

i had the patch below for v2, it's still needed (because i didnt apply 
the s390/etc. bits), right?

	Ingo

------------->
Subject: x86: let other arches build
From: Ingo Molnar <mingo@elte.hu>

let architectures which still have the DEFINE_PER_CPU/etc. build
properly.

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

Index: linux-x86.q/include/linux/percpu.h
===================================================================
--- linux-x86.q.orig/include/linux/percpu.h
+++ linux-x86.q/include/linux/percpu.h
@@ -14,6 +14,7 @@
 #endif
 
 #ifdef CONFIG_SMP
+#ifndef DEFINE_PER_CPU
 #define DEFINE_PER_CPU(type, name)					\
 	__attribute__((__section__(".data.percpu")))			\
 	PER_CPU_ATTRIBUTES __typeof__(type) per_cpu__##name
@@ -32,6 +33,7 @@
 
 #define EXPORT_PER_CPU_SYMBOL(var) EXPORT_SYMBOL(per_cpu__##var)
 #define EXPORT_PER_CPU_SYMBOL_GPL(var) EXPORT_SYMBOL_GPL(per_cpu__##var)
+#endif
 
 /* Enough to cover all DEFINE_PER_CPUs in kernel, including modules. */
 #ifndef PERCPU_ENOUGH_ROOM
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 00/10] percpu: Per cpu code simplification V3, Ingo Molnar, (Tue Jan 8, 5:07 am)
Re: [PATCH 00/10] percpu: Per cpu code simplification V3, Christoph Lameter, (Tue Jan 8, 3:04 pm)
speck-geostationary