summaryrefslogtreecommitdiff
path: root/arch/s390/kernel/vdso64/vdso64.lds.S
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2016-01-05 15:29:38 +0300
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-01-11 15:01:24 +0300
commit249c543b97e1409b13fb9539b2f880e58ddd87cf (patch)
tree956a0719238b56b8dffa3877d3fe3eb5c27df9f4 /arch/s390/kernel/vdso64/vdso64.lds.S
parent0dab3e0e59ac3692e2f95cb37ba17d5dfb3d1e5f (diff)
downloadlinux-249c543b97e1409b13fb9539b2f880e58ddd87cf.tar.xz
s390/vdso: optimize getcpu system call
Add the CPU number to the per-cpu vdso data page and add the __kernel_getcpu function to the vdso object to retrieve the CPU number in user space. Suggested-by: Heiko Carstens <heiko.carstens@de.ibm.com> Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/vdso64/vdso64.lds.S')
-rw-r--r--arch/s390/kernel/vdso64/vdso64.lds.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/kernel/vdso64/vdso64.lds.S b/arch/s390/kernel/vdso64/vdso64.lds.S
index 9f5979d102a9..f35455d497fe 100644
--- a/arch/s390/kernel/vdso64/vdso64.lds.S
+++ b/arch/s390/kernel/vdso64/vdso64.lds.S
@@ -132,6 +132,7 @@ VERSION
__kernel_gettimeofday;
__kernel_clock_gettime;
__kernel_clock_getres;
+ __kernel_getcpu;
local: *;
};