summaryrefslogtreecommitdiffstats
path: root/include/asm-generic/percpu.h
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@novell.com>2005-06-23 09:09:59 +0200
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-23 18:45:28 +0200
commit11c80c8367db0a9d342529ed74464670cd86a1f6 (patch)
treed4625a9565866dc6565972b069c57cdedb7e0f27 /include/asm-generic/percpu.h
parent[PATCH] ide-floppy adjustments (diff)
downloadlinux-11c80c8367db0a9d342529ed74464670cd86a1f6.tar.xz
linux-11c80c8367db0a9d342529ed74464670cd86a1f6.zip
[PATCH] adjust per_cpu definition in non-SMP case
Fix (in the architectures I'm actually building for) the UP definition of per_cpu so that the cpu specified may be any expression, not just an identifier or a suffix expression. Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-generic/percpu.h')
-rw-r--r--include/asm-generic/percpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/percpu.h b/include/asm-generic/percpu.h
index 3b709b84934f..9044aeb37828 100644
--- a/include/asm-generic/percpu.h
+++ b/include/asm-generic/percpu.h
@@ -29,7 +29,7 @@ do { \
#define DEFINE_PER_CPU(type, name) \
__typeof__(type) per_cpu__##name
-#define per_cpu(var, cpu) (*((void)cpu, &per_cpu__##var))
+#define per_cpu(var, cpu) (*((void)(cpu), &per_cpu__##var))
#define __get_cpu_var(var) per_cpu__##var
#endif /* SMP */