]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/vdso: Remove cvdso_call_time macro
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 21 Jan 2022 16:30:30 +0000 (16:30 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 12 Feb 2022 11:47:43 +0000 (22:47 +1100)
commitce18753af4c9011db889057f86916e1da0279a27
tree08b3684e77084e6937750888eec15917741fd17f
parent1e967d4696a292d0809ce26316ad552e31270218
powerpc/vdso: Remove cvdso_call_time macro

cvdso_call_time macro is very similar to cvdso_call macro.

Add a call_time argument to cvdso_call which is 0 by default
and set to 1 when using cvdso_call to call __c_kernel_time().

Return returned value as is with CR[SO] cleared when it is used
for time().

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/837a260ad86fc1ce297a562c2117fd69be5f7b5c.1642782130.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/vdso/gettimeofday.h
arch/powerpc/kernel/vdso/gettimeofday.S