diff options
author | Mike Travis <travis@sgi.com> | 2008-01-30 07:33:32 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:32 -0500 |
commit | dd5af90a7f3d79e04b7eace9a98644dbf2038f4d (patch) | |
tree | 22327ba385c830b7be391c76821dc5ec26863f2e /include/asm-generic | |
parent | 3212bff370c2f22e4987c6679ba485654cefb178 (diff) |
x86/non-x86: percpu, node ids, apic ids x86.git fixup
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-generic')
-rw-r--r-- | include/asm-generic/percpu.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/asm-generic/percpu.h b/include/asm-generic/percpu.h index c41b1a731129..4b8d31cda1a0 100644 --- a/include/asm-generic/percpu.h +++ b/include/asm-generic/percpu.h | |||
@@ -47,7 +47,7 @@ extern unsigned long __per_cpu_offset[NR_CPUS]; | |||
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | /* | 49 | /* |
50 | * A percpu variable may point to a discarded reghions. The following are | 50 | * A percpu variable may point to a discarded regions. The following are |
51 | * established ways to produce a usable pointer from the percpu variable | 51 | * established ways to produce a usable pointer from the percpu variable |
52 | * offset. | 52 | * offset. |
53 | */ | 53 | */ |
@@ -59,18 +59,10 @@ extern unsigned long __per_cpu_offset[NR_CPUS]; | |||
59 | (*SHIFT_PERCPU_PTR(&per_cpu_var(var), __my_cpu_offset)) | 59 | (*SHIFT_PERCPU_PTR(&per_cpu_var(var), __my_cpu_offset)) |
60 | 60 | ||
61 | 61 | ||
62 | #ifdef CONFIG_ARCH_SETS_UP_PER_CPU_AREA | 62 | #ifdef CONFIG_HAVE_SETUP_PER_CPU_AREA |
63 | extern void setup_per_cpu_areas(void); | 63 | extern void setup_per_cpu_areas(void); |
64 | #endif | 64 | #endif |
65 | 65 | ||
66 | /* A macro to avoid #include hell... */ | ||
67 | #define percpu_modcopy(pcpudst, src, size) \ | ||
68 | do { \ | ||
69 | unsigned int __i; \ | ||
70 | for_each_possible_cpu(__i) \ | ||
71 | memcpy((pcpudst)+per_cpu_offset(__i), \ | ||
72 | (src), (size)); \ | ||
73 | } while (0) | ||
74 | #else /* ! SMP */ | 66 | #else /* ! SMP */ |
75 | 67 | ||
76 | #define per_cpu(var, cpu) (*((void)(cpu), &per_cpu_var(var))) | 68 | #define per_cpu(var, cpu) (*((void)(cpu), &per_cpu_var(var))) |