diff options
Diffstat (limited to 'kernel/module.c')
| -rw-r--r-- | kernel/module.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/module.c b/kernel/module.c index f6a4e721fd49..bd60278ee703 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
| @@ -430,6 +430,14 @@ static unsigned int find_pcpusec(Elf_Ehdr *hdr, | |||
| 430 | return find_sec(hdr, sechdrs, secstrings, ".data.percpu"); | 430 | return find_sec(hdr, sechdrs, secstrings, ".data.percpu"); |
| 431 | } | 431 | } |
| 432 | 432 | ||
| 433 | static void percpu_modcopy(void *pcpudest, const void *from, unsigned long size) | ||
| 434 | { | ||
| 435 | int cpu; | ||
| 436 | |||
| 437 | for_each_possible_cpu(cpu) | ||
| 438 | memcpy(pcpudest + per_cpu_offset(cpu), from, size); | ||
| 439 | } | ||
| 440 | |||
| 433 | static int percpu_modinit(void) | 441 | static int percpu_modinit(void) |
| 434 | { | 442 | { |
| 435 | pcpu_num_used = 2; | 443 | pcpu_num_used = 2; |
