hugetlb: introduce generic version of hugetlb_free_pgd_range
[linux/fpc-iii.git] / arch / x86 / entry / vdso / vgetcpu.c
blobf86ab0ae1777f6a720cbb7fd9b69885f3957f767
1 /*
2 * Copyright 2006 Andi Kleen, SUSE Labs.
3 * Subject to the GNU Public License, v.2
5 * Fast user context implementation of getcpu()
6 */
8 #include <linux/kernel.h>
9 #include <linux/getcpu.h>
10 #include <linux/time.h>
11 #include <asm/vgtod.h>
13 notrace long
14 __vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused)
16 vdso_read_cpunode(cpu, node);
18 return 0;
21 long getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *tcache)
22 __attribute__((weak, alias("__vdso_getcpu")));