summaryrefslogtreecommitdiff
path: root/arch/x86/entry/vdso/vgetcpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/entry/vdso/vgetcpu.c')
-rw-r--r--arch/x86/entry/vdso/vgetcpu.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/x86/entry/vdso/vgetcpu.c b/arch/x86/entry/vdso/vgetcpu.c
index 8ec3d1f4ce9a..de78fc9cd963 100644
--- a/arch/x86/entry/vdso/vgetcpu.c
+++ b/arch/x86/entry/vdso/vgetcpu.c
@@ -13,14 +13,7 @@
notrace long
__vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused)
{
- unsigned int p;
-
- p = __getcpu();
-
- if (cpu)
- *cpu = p & VGETCPU_CPU_MASK;
- if (node)
- *node = p >> 12;
+ vdso_read_cpu_node(cpu, node);
return 0;
}