From 14b5d6ad4da4df8749a61ca5d53619439ce340b9 Mon Sep 17 00:00:00 2001 From: Christoph Lameter Date: Wed, 31 Oct 2007 17:30:05 -0700 Subject: [PATCH] opt_disguise Disguising costs a few cycles in the hot paths. So switch it off if we are not debuggin. Signed-off-by: Christoph Lameter --- include/linux/percpu.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/linux/percpu.h b/include/linux/percpu.h index 04a1137..e77250a 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h @@ -33,7 +33,11 @@ #ifdef CONFIG_SMP +#ifdef CONFIG_DEBUG_VM #define __percpu_disguise(pdata) ((void *)~(unsigned long)(pdata)) +#else +#define __percpu_disguide(pdata) ((void *)(pdata)) +#endif /* * Use this to get to a cpu's version of the per-cpu object dynamically -- 1.5.3.4