lib/vdso: Avoid duplication in __cvdso_clock_getres()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 23 Dec 2019 14:31:09 +0000 (14:31 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 14 Jan 2020 11:20:47 +0000 (12:20 +0100)
commitcdb7c5a9c897ab2e5c56df647dd84c84e150e925
tree98ef2002f7de486cd573561325d704ccb4d5d73a
parent8463cf80529d0fd80b84cd5ab8b9b952b01c7eb9
lib/vdso: Avoid duplication in __cvdso_clock_getres()

VDSO_HRES and VDSO_RAW clocks are handled the same way.

Avoid the code duplication.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Link: https://lore.kernel.org/r/fdf1a968a8f7edd61456f1689ac44082ebb19c15.1577111367.git.christophe.leroy@c-s.fr
lib/vdso/gettimeofday.c