projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
USB: belkin_sa: clean up for new style termios and speed handling, plus style
[powerpc.git]
/
kernel
/
module.c
diff --git
a/kernel/module.c
b/kernel/module.c
index
f6a4e72
..
bd60278
100644
(file)
--- a/
kernel/module.c
+++ b/
kernel/module.c
@@
-430,6
+430,14
@@
static unsigned int find_pcpusec(Elf_Ehdr *hdr,
return find_sec(hdr, sechdrs, secstrings, ".data.percpu");
}
return find_sec(hdr, sechdrs, secstrings, ".data.percpu");
}
+static void percpu_modcopy(void *pcpudest, const void *from, unsigned long size)
+{
+ int cpu;
+
+ for_each_possible_cpu(cpu)
+ memcpy(pcpudest + per_cpu_offset(cpu), from, size);
+}
+
static int percpu_modinit(void)
{
pcpu_num_used = 2;
static int percpu_modinit(void)
{
pcpu_num_used = 2;