Commit b32ef636a59aad12f9f9b5dc34c93222842c58ba
Committed by
Ingo Molnar
1 parent
cf8fa920cb
Exists in
master
and in
20 other branches
percpu: use a kconfig variable to signal arch specific percpu setup
The use of the __GENERIC_PERCPU is a bit problematic since arches may want to run their own percpu setup while using the generic percpu definitions. Replace it through a kconfig variable. Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Andi Kleen <ak@suse.de> Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Mike Travis <travis@sgi.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Showing 8 changed files with 14 additions and 7 deletions Side-by-side Diff
arch/ia64/Kconfig
arch/powerpc/Kconfig
arch/sparc64/Kconfig
arch/x86/Kconfig
include/asm-generic/percpu.h
include/asm-s390/percpu.h
include/asm-x86/percpu_32.h
... | ... | @@ -41,8 +41,6 @@ |
41 | 41 | * PER_CPU(cpu_gdt_descr, %ebx) |
42 | 42 | */ |
43 | 43 | #ifdef CONFIG_SMP |
44 | -/* Same as generic implementation except for optimized local access. */ | |
45 | -#define __GENERIC_PER_CPU | |
46 | 44 | |
47 | 45 | /* This is used for other cpus to find our section. */ |
48 | 46 | extern unsigned long __per_cpu_offset[]; |
init/main.c
... | ... | @@ -363,7 +363,7 @@ |
363 | 363 | |
364 | 364 | #else |
365 | 365 | |
366 | -#ifdef __GENERIC_PER_CPU | |
366 | +#ifndef CONFIG_ARCH_SETS_UP_PER_CPU_AREA | |
367 | 367 | unsigned long __per_cpu_offset[NR_CPUS] __read_mostly; |
368 | 368 | |
369 | 369 | EXPORT_SYMBOL(__per_cpu_offset); |
... | ... | @@ -384,7 +384,7 @@ |
384 | 384 | ptr += size; |
385 | 385 | } |
386 | 386 | } |
387 | -#endif /* !__GENERIC_PER_CPU */ | |
387 | +#endif /* CONFIG_ARCH_SETS_UP_CPU_AREA */ | |
388 | 388 | |
389 | 389 | /* Called by boot processor to activate the rest. */ |
390 | 390 | static void __init smp_init(void) |