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-s390 | |
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-s390')
-rw-r--r-- | include/asm-s390/percpu.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/asm-s390/percpu.h b/include/asm-s390/percpu.h index 2d676a873858..465d313ba2dc 100644 --- a/include/asm-s390/percpu.h +++ b/include/asm-s390/percpu.h | |||
@@ -39,15 +39,6 @@ extern unsigned long __per_cpu_offset[NR_CPUS]; | |||
39 | #define per_cpu(var,cpu) __reloc_hide(var,__per_cpu_offset[cpu]) | 39 | #define per_cpu(var,cpu) __reloc_hide(var,__per_cpu_offset[cpu]) |
40 | #define per_cpu_offset(x) (__per_cpu_offset[x]) | 40 | #define per_cpu_offset(x) (__per_cpu_offset[x]) |
41 | 41 | ||
42 | /* A macro to avoid #include hell... */ | ||
43 | #define percpu_modcopy(pcpudst, src, size) \ | ||
44 | do { \ | ||
45 | unsigned int __i; \ | ||
46 | for_each_possible_cpu(__i) \ | ||
47 | memcpy((pcpudst)+__per_cpu_offset[__i], \ | ||
48 | (src), (size)); \ | ||
49 | } while (0) | ||
50 | |||
51 | #else /* ! SMP */ | 42 | #else /* ! SMP */ |
52 | 43 | ||
53 | #define __get_cpu_var(var) __reloc_hide(var,0) | 44 | #define __get_cpu_var(var) __reloc_hide(var,0) |