linux/arch/nds32
Vincenzo Frascino af9abd6598 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>
2019-05-16 15:07:08 +08:00
..
boot nds32: Perf porting 2018-11-06 18:01:40 +08:00
configs fscrypt: remove filesystem specific build config option 2019-01-23 23:56:43 -05:00
include nds32: Fix vDSO clock_getres() 2019-05-16 15:07:08 +08:00
kernel nds32: Fix vDSO clock_getres() 2019-05-16 15:07:08 +08:00
lib nds32: Fix the symbols undefined issue by exporting them. 2018-05-23 13:26:20 +08:00
math-emu nds32: support denormalized result through FP emulator 2018-11-22 18:13:27 +08:00
mm nds32: fix semicolon code style issue 2019-05-07 17:52:10 +08:00
Kconfig arch: nds32: Kconfig: pedantic formatting 2019-05-07 17:52:10 +08:00
Kconfig.cpu nds32: support hardware prefetcher 2018-11-22 18:13:51 +08:00
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Makefile nds32: remove unneeded code in arch/nds32/Makefile 2019-01-17 23:42:37 +09:00