diff options
author | travis@sgi.com <travis@sgi.com> | 2008-01-30 22:27:58 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 22:27:58 (GMT) |
commit | 6ddfee0e79e141550376177b355d6c90ba6da88c (patch) | |
tree | ed19ac446e1e4510712b87ee5dae4d6492324939 /include/asm-powerpc | |
parent | 914c82694cadbab511f2aee8a59c89be2938bace (diff) | |
download | linux-fsl-qoriq-6ddfee0e79e141550376177b355d6c90ba6da88c.tar.xz |
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')
-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 cc1cbf6..1b75688 100644 --- a/include/asm-powerpc/percpu.h +++ b/include/asm-powerpc/percpu.h @@ -21,15 +21,6 @@ #define __get_cpu_var(var) (*RELOC_HIDE(&per_cpu__##var, __my_cpu_offset())) #define __raw_get_cpu_var(var) (*RELOC_HIDE(&per_cpu__##var, local_paca->data_offset)) -/* A macro to avoid #include hell... */ -#define percpu_modcopy(pcpudst, src, size) \ -do { \ - unsigned int __i; \ - for_each_possible_cpu(__i) \ - memcpy((pcpudst)+__per_cpu_offset(__i), \ - (src), (size)); \ -} while (0) - extern void setup_per_cpu_areas(void); #else /* ! SMP */ |