android_kernel_xiaomi_sm7250/arch/nds32
Vincenzo Frascino e3db5d1536 UPSTREAM: nds32: Fix vDSO clock_getres()
clock_getres in the vDSO library has to preserve the same behaviour
of posix_get_hrtimer_res().

In particular, posix_get_hrtimer_res() does:
    sec = 0;
    ns = hrtimer_resolution;
and hrtimer_resolution depends on the enablement of the high
resolution timers that can happen either at compile or at run time.

Fix the nds32 vdso implementation of clock_getres keeping a copy of
hrtimer_resolution in vdso data and using that directly.

Cc: Greentime Hu <green.hu@gmail.com>
Cc: Vincent Chen <deanbo422@gmail.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Greentime Hu <greentime@andestech.com>
(cherry picked from commit af9abd65983cf3602c03ef3d16fe549ba1f3eeed)
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 154668398
Change-Id: Ic66e6358c4f5f32abc968a6ebb4868eaa7d07a37
2020-04-27 22:51:55 -07:00
..
boot
configs fscrypt: remove filesystem specific build config option 2019-04-04 09:52:02 -07:00
include UPSTREAM: nds32: Fix vDSO clock_getres() 2020-04-27 22:51:55 -07:00
kernel UPSTREAM: nds32: Fix vDSO clock_getres() 2020-04-27 22:51:55 -07:00
lib
mm nds32: Fix gcc 8.0 compiler option incompatible. 2019-02-12 19:46:57 +01:00
Kconfig nds32/ftrace: Support dynamic function tracer 2018-09-04 14:45:18 +08:00
Kconfig.cpu
Kconfig.debug
Makefile nds32/ftrace: Support static function tracer 2018-09-04 14:45:17 +08:00