]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/vdso: optimize getcpu system call
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 5 Jan 2016 12:29:38 +0000 (13:29 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 11 Jan 2016 12:01:24 +0000 (13:01 +0100)
commit249c543b97e1409b13fb9539b2f880e58ddd87cf
tree956a0719238b56b8dffa3877d3fe3eb5c27df9f4
parent0dab3e0e59ac3692e2f95cb37ba17d5dfb3d1e5f
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>
arch/s390/include/asm/vdso.h
arch/s390/kernel/asm-offsets.c
arch/s390/kernel/vdso.c
arch/s390/kernel/vdso32/Makefile
arch/s390/kernel/vdso32/getcpu.S [new file with mode: 0644]
arch/s390/kernel/vdso32/vdso32.lds.S
arch/s390/kernel/vdso64/Makefile
arch/s390/kernel/vdso64/getcpu.S [new file with mode: 0644]
arch/s390/kernel/vdso64/vdso64.lds.S