kernel-fxtec-pro1x/arch/nds32/kernel
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
..
vdso UPSTREAM: nds32: Fix vDSO clock_getres() 2020-04-27 22:51:55 -07:00
asm-offsets.c
atl2c.c nds32: add NULL entry to the end of_device_id array 2018-09-04 14:45:15 +08:00
cacheinfo.c nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
devtree.c nds32: Device tree support 2018-02-22 10:44:34 +08:00
dma.c nds32: use generic dma_noncoherent_ops 2018-05-29 16:10:32 +02:00
ex-entry.S nds32: Fix a kernel panic issue because of wrong frame pointer access. 2018-09-04 14:45:19 +08:00
ex-exit.S nds32: Fix a kernel panic issue because of wrong frame pointer access. 2018-09-04 14:45:19 +08:00
ex-scall.S nds32: System calls handling 2018-02-22 10:44:33 +08:00
ftrace.c nds32: function_graph: Simplify with function_graph_enter() 2018-12-05 19:32:09 +01:00
head.S nds32: To fix a cache inconsistency issue by setting correct cacheability of NTC 2018-05-23 13:26:22 +08:00
irq.c nds32: IRQ handling 2018-02-22 10:44:32 +08:00
Makefile nds32/ftrace: Support static function tracer 2018-09-04 14:45:17 +08:00
module.c nds32: fix logic for module 2018-09-04 14:45:15 +08:00
nds32_ksyms.c nds32: Library functions 2018-02-22 10:44:33 +08:00
process.c nds32: Process management 2018-02-22 10:44:32 +08:00
ptrace.c nds32: Debugging support 2018-02-22 10:44:34 +08:00
setup.c nds32: Fix the items of hwcap_str ordering issue. 2019-12-13 08:51:35 +01:00
signal.c nds32: Signal handling support 2018-02-22 10:44:33 +08:00
stacktrace.c nds32: Add macro definition for offset of lp register on stack 2018-09-04 14:45:19 +08:00
sys_nds32.c nds32: System calls handling 2018-02-22 10:44:33 +08:00
syscall_table.c nds32: System calls handling 2018-02-22 10:44:33 +08:00
time.c nds32: Generic timers support 2018-02-22 10:44:34 +08:00
traps.c nds32: Only print one page of stack when die to prevent printing too much information. 2018-09-04 14:45:19 +08:00
vdso.c UPSTREAM: nds32: Fix vDSO clock_getres() 2020-04-27 22:51:55 -07:00
vmlinux.lds.S nds32: linker script: GCOV kernel may refers data in __exit 2018-09-05 10:16:26 +08:00