diff options
author | travis@sgi.com <travis@sgi.com> | 2008-01-30 17:27:58 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 17:27:58 -0500 |
commit | 6ddfee0e79e141550376177b355d6c90ba6da88c (patch) | |
tree | ed19ac446e1e4510712b87ee5dae4d6492324939 /include/asm-powerpc/percpu.h | |
parent | 914c82694cadbab511f2aee8a59c89be2938bace (diff) |
modules: fold percpu_modcopy into module.c
percpu_modcopy() is defined multiple times in arch files. However, the only
user is module.c. Put a static definition into module.c and remove
the definitions from the arch files.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-powerpc/percpu.h')
-rw-r--r-- | include/asm-powerpc/percpu.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/asm-powerpc/percpu.h b/include/asm-powerpc/percpu.h index cc1cbf656b02..1b7568838b43 100644 --- a/include/asm-powerpc/percpu.h +++ b/include/asm-powerpc/percpu.h | |||
@@ -21,15 +21,6 @@ | |||
21 | #define __get_cpu_var(var) (*RELOC_HIDE(&per_cpu__##var, __my_cpu_offset())) | 21 | #define __get_cpu_var(var) (*RELOC_HIDE(&per_cpu__##var, __my_cpu_offset())) |
22 | #define __raw_get_cpu_var(var) (*RELOC_HIDE(&per_cpu__##var, local_paca->data_offset)) | 22 | #define __raw_get_cpu_var(var) (*RELOC_HIDE(&per_cpu__##var, local_paca->data_offset)) |
23 | 23 | ||
24 | /* A macro to avoid #include hell... */ | ||
25 | #define percpu_modcopy(pcpudst, src, size) \ | ||
26 | do { \ | ||
27 | unsigned int __i; \ | ||
28 | for_each_possible_cpu(__i) \ | ||
29 | memcpy((pcpudst)+__per_cpu_offset(__i), \ | ||
30 | (src), (size)); \ | ||
31 | } while (0) | ||
32 | |||
33 | extern void setup_per_cpu_areas(void); | 24 | extern void setup_per_cpu_areas(void); |
34 | 25 | ||
35 | #else /* ! SMP */ | 26 | #else /* ! SMP */ |