lib/vdso: Only read hrtimer_res when needed in __cvdso_clock_getres()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 16 Jan 2020 17:58:27 +0000 (17:58 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Jan 2020 20:24:46 +0000 (21:24 +0100)
commit49a101d7169c7729c7bab6b2f896faae34bd6c3d
treeaa7bd28f1b8b3d1fb945ff9136f1fddc4810b8b0
parent99570c3da96a0f7aa11c6ad4981776f3adabf3b5
lib/vdso: Only read hrtimer_res when needed in __cvdso_clock_getres()

Only perform READ_ONCE(vd[CS_HRES_COARSE].hrtimer_res) for
HRES and RAW clocks.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/7ac2f0d21652f95e2bbdfa6bd514ae6c7caf53ab.1579196675.git.christophe.leroy@c-s.fr
lib/vdso/gettimeofday.c