android_kernel_motorola_sm6225/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 nds32: Build infrastructure 2018-02-22 10:44:35 +08:00
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 nds32: Fix the symbols undefined issue by exporting them. 2018-05-23 13:26:20 +08:00
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 nds32: Fix the allmodconfig build. To make sure CONFIG_CPU_LITTLE_ENDIAN is default y 2018-05-23 13:26:21 +08:00
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Makefile nds32/ftrace: Support static function tracer 2018-09-04 14:45:17 +08:00