linux/arch/nds32/kernel/vdso
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
..
.gitignore nds32: add vmlinux.lds and vdso.so to .gitignore 2019-05-07 17:52:09 +08:00
Makefile nds32: vdso: drop unnecessary cc-ldoption 2019-05-07 17:52:10 +08:00
datapage.S
gen_vdso_offsets.sh
gettimeofday.c nds32: Fix vDSO clock_getres() 2019-05-16 15:07:08 +08:00
note.S
sigreturn.S
vdso.S
vdso.lds.S nds32: fix building failed if using elf toolchain. 2018-03-16 15:45:22 +08:00