]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/module.c
[XFS] Remove Makefile wrappers in XFS
[linux-2.6-omap-h63xx.git] / kernel / module.c
index f6a4e721fd4907339dfbbca63d5081244697973f..bd60278ee7035945d1db4dfaed0f26b3c4a457e8 100644 (file)
@@ -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;