]> git.baikalelectronics.ru Git - kernel.git/commit
s390/vdso: simplify __arch_get_hw_counter()
authorHeiko Carstens <hca@linux.ibm.com>
Sun, 31 Jan 2021 21:27:36 +0000 (22:27 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 9 Feb 2021 14:57:05 +0000 (15:57 +0100)
commit7144063dfb12d43046fe96d8106e50f9a5cc07c3
treec37c432db7521def5184bc7cf4b3beb0213f4eae
parentd2c39857f9f0c33f75482760795f45d83539a5ff
s390/vdso: simplify __arch_get_hw_counter()

Use the passed in vdso_data pointer instead of calculating it again.
This is also required as a prerequisite for vdso time namespaces: if a
process is part of a time namespace __arch_get_vdso_data() will return
a pointer to the time namespace data page instead of the vdso data
page, which is not what __arch_get_hw_counter() expects.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/vdso/gettimeofday.h