diff options
author | Mike Travis <travis@sgi.com> | 2008-01-30 13:33:32 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:33:32 +0100 |
commit | dd5af90a7f3d79e04b7eace9a98644dbf2038f4d (patch) | |
tree | 22327ba385c830b7be391c76821dc5ec26863f2e /kernel/module.c | |
parent | 3212bff370c2f22e4987c6679ba485654cefb178 (diff) | |
download | op-kernel-dev-dd5af90a7f3d79e04b7eace9a98644dbf2038f4d.zip op-kernel-dev-dd5af90a7f3d79e04b7eace9a98644dbf2038f4d.tar.gz |
x86/non-x86: percpu, node ids, apic ids x86.git fixup
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
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 f6a4e72..bd60278e 100644 --- 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"); } +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; |