diff options
| author | Tejun Heo <tj@kernel.org> | 2009-09-14 20:57:19 -0400 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2009-09-14 20:57:19 -0400 |
| commit | 5579fd7e6aed8860ea0c8e3f11897493153b10ad (patch) | |
| tree | 8f797ccd0f1a2c88f1605ae9e90b3ac17485de27 | |
| parent | 04a13c7c632e1fe04a5f6e6c83565d2559e37598 (diff) | |
| parent | c2a7e818019f20a5cf7fb26a6eb59e212e6c0cd8 (diff) | |
Merge branch 'for-next' into for-linus
* pcpu_chunk_page_occupied() doesn't exist in for-next.
* pcpu_chunk_addr_search() updated to use raw_smp_processor_id().
Conflicts:
mm/percpu.c
80 files changed, 1910 insertions, 1228 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 7936b801fe6a..e710093e3d32 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
| @@ -1919,11 +1919,12 @@ and is between 256 and 4096 characters. It is defined in the file | |||
| 1919 | Format: { 0 | 1 } | 1919 | Format: { 0 | 1 } |
| 1920 | See arch/parisc/kernel/pdc_chassis.c | 1920 | See arch/parisc/kernel/pdc_chassis.c |
| 1921 | 1921 | ||
| 1922 | percpu_alloc= [X86] Select which percpu first chunk allocator to use. | 1922 | percpu_alloc= Select which percpu first chunk allocator to use. |
| 1923 | Allowed values are one of "lpage", "embed" and "4k". | 1923 | Currently supported values are "embed" and "page". |
| 1924 | See comments in arch/x86/kernel/setup_percpu.c for | 1924 | Archs may support subset or none of the selections. |
| 1925 | details on each allocator. This parameter is primarily | 1925 | See comments in mm/percpu.c for details on each |
| 1926 | for debugging and performance comparison. | 1926 | allocator. This parameter is primarily for debugging |
| 1927 | and performance comparison. | ||
| 1927 | 1928 | ||
| 1928 | pf. [PARIDE] | 1929 | pf. [PARIDE] |
| 1929 | See Documentation/blockdev/paride.txt. | 1930 | See Documentation/blockdev/paride.txt. |
| @@ -325,7 +325,7 @@ CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \ | |||
| 325 | MODFLAGS = -DMODULE | 325 | MODFLAGS = -DMODULE |
| 326 | CFLAGS_MODULE = $(MODFLAGS) | 326 | CFLAGS_MODULE = $(MODFLAGS) |
| 327 | AFLAGS_MODULE = $(MODFLAGS) | 327 | AFLAGS_MODULE = $(MODFLAGS) |
| 328 | LDFLAGS_MODULE = | 328 | LDFLAGS_MODULE = -T $(srctree)/scripts/module-common.lds |
| 329 | CFLAGS_KERNEL = | 329 | CFLAGS_KERNEL = |
| 330 | AFLAGS_KERNEL = | 330 | AFLAGS_KERNEL = |
| 331 | CFLAGS_GCOV = -fprofile-arcs -ftest-coverage | 331 | CFLAGS_GCOV = -fprofile-arcs -ftest-coverage |
diff --git a/arch/alpha/include/asm/percpu.h b/arch/alpha/include/asm/percpu.h index b663f1f10b6a..2c12378e3aa9 100644 --- a/arch/alpha/include/asm/percpu.h +++ b/arch/alpha/include/asm/percpu.h | |||
| @@ -1,102 +1,18 @@ | |||
| 1 | #ifndef __ALPHA_PERCPU_H | 1 | #ifndef __ALPHA_PERCPU_H |
| 2 | #define __ALPHA_PERCPU_H | 2 | #define __ALPHA_PERCPU_H |
| 3 | 3 | ||
| 4 | #include <linux/compiler.h> | ||
| 5 | #include <linux/threads.h> | ||
| 6 | #include <linux/percpu-defs.h> | ||
| 7 | |||
| 8 | /* | ||
| 9 | * Determine the real variable name from the name visible in the | ||
| 10 | * kernel sources. | ||
| 11 | */ | ||
| 12 | #define per_cpu_var(var) per_cpu__##var | ||
| 13 | |||
| 14 | #ifdef CONFIG_SMP | ||
| 15 | |||
| 16 | /* | ||
| 17 | * per_cpu_offset() is the offset that has to be added to a | ||
| 18 | * percpu variable to get to the instance for a certain processor. | ||
| 19 | */ | ||
| 20 | extern unsigned long __per_cpu_offset[NR_CPUS]; | ||
| 21 | |||
| 22 | #define per_cpu_offset(x) (__per_cpu_offset[x]) | ||
| 23 | |||
| 24 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id()) | ||
| 25 | #ifdef CONFIG_DEBUG_PREEMPT | ||
| 26 | #define my_cpu_offset per_cpu_offset(smp_processor_id()) | ||
| 27 | #else | ||
| 28 | #define my_cpu_offset __my_cpu_offset | ||
| 29 | #endif | ||
| 30 | |||
| 31 | #ifndef MODULE | ||
