Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce per cpu access overhead

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Miller <davem@...>
Cc: <akpm@...>, <linux-arch@...>, <linux-kernel@...>, <mathieu.desnoyers@...>, <penberg@...>
Date: Wednesday, October 31, 2007 - 8:53 pm

> This patch fixes build failures with DEBUG_VM disabled.

Well there is more there. Last minute mods sigh. With DEBUG_VM you likely 
need this patch.


---
 include/linux/percpu.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6/include/linux/percpu.h
===================================================================
--- linux-2.6.orig/include/linux/percpu.h	2007-10-31 17:48:38.020499686 -0700
+++ linux-2.6/include/linux/percpu.h	2007-10-31 17:51:01.423372247 -0700
@@ -36,7 +36,7 @@
 #ifdef CONFIG_DEBUG_VM
 #define __percpu_disguise(pdata) ((void *)~(unsigned long)(pdata))
 #else
-#define __percpu_disguide(pdata) ((void *)(pdata))
+#define __percpu_disguise(pdata) ((void *)(pdata))
 #endif
 
 /* 
@@ -53,7 +53,7 @@
 
 #define this_cpu_ptr(ptr)           			\
 ({							\
-	void *p = ptr;					\
+	void *p = __percpu_disguise(ptr);		\
     	(__typeof__(ptr))(p + this_cpu_offset());	\
 })
 
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce per cp..., Christoph Lameter, (Wed Oct 31, 8:02 pm)
[PATCH 1/7] One less parameter to __d_path, Jan Blunck, (Mon Oct 29, 8:41 am)
Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce pe..., Christoph Lameter, (Wed Oct 31, 8:26 pm)
Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce pe..., Christoph Lameter, (Wed Oct 31, 8:31 pm)
Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce pe..., Christoph Lameter, (Wed Oct 31, 8:53 pm)
Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce pe..., Christoph Lameter, (Wed Oct 31, 9:01 pm)
Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce pe..., Christoph Lameter, (Wed Oct 31, 9:12 pm)
Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce pe..., Christoph Lameter, (Thu Nov 1, 12:16 am)
Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce pe..., Christoph Lameter, (Mon Nov 12, 3:14 pm)
Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce pe..., Christoph Lameter, (Mon Nov 12, 3:56 pm)
Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce pe..., Christoph Lameter, (Fri Nov 2, 10:35 am)
Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce pe..., Christoph Lameter, (Fri Nov 2, 11:29 am)
Re: [patch 0/7] [RFC] SLUB: Improve allocpercpu to reduce pe..., Christoph Lameter, (Wed Oct 31, 9:21 pm)