UPSTREAM: 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 (cherry picked from commit 49a101d7169c7729c7bab6b2f896faae34bd6c3d) Signed-off-by:
Mark Salyzyn <salyzyn@google.com> Bug: 154668398 Change-Id: I0441a793d4703755e8026f23c07e5c1f12544319
Loading
Please register or sign in to comment