android_kernel_motorola_sm6225/arch/nds32/include/asm
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
..
assembler.h
barrier.h nds32: Atomic operations 2018-02-22 10:44:32 +08:00
bitfield.h nds32: Fix bug in bitfield.h 2019-12-01 09:17:18 +01:00
cache.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
cache_info.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
cacheflush.h nds32: To implement these icache invalidation APIs since nds32 cores don't snoop 2018-07-03 11:11:56 +08:00
current.h nds32: Process management 2018-02-22 10:44:32 +08:00
delay.h nds32: Miscellaneous header files 2018-02-22 10:44:34 +08:00
elf.h nds32: fix build error because of wrong semicolon 2018-09-04 14:45:20 +08:00
fixmap.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
ftrace.h nds32/ftrace: Support dynamic function tracer 2018-09-04 14:45:18 +08:00
futex.h nds32: fix build error "relocation truncated to fit: R_NDS32_25_PCREL_RELA" when 2018-07-05 16:13:47 +08:00
highmem.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
io.h nds32: Fix the unknown type u8 issue. 2018-05-23 13:26:21 +08:00
irqflags.h nds32: IRQ handling 2018-02-22 10:44:32 +08:00
Kbuild Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-06-04 20:27:54 -07:00
l2_cache.h nds32: L2 cache support 2018-02-22 10:44:34 +08:00
linkage.h nds32: Miscellaneous header files 2018-02-22 10:44:34 +08:00
memory.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
mmu.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
mmu_context.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
module.h nds32: Loadable modules 2018-02-22 10:44:34 +08:00
nds32.h nds32: Add macro definition for offset of lp register on stack 2018-09-04 14:45:19 +08:00
page.h nds32: Fix the symbols undefined issue by exporting them. 2018-05-23 13:26:20 +08:00
pgalloc.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
pgtable.h mm: make the __PAGETABLE_PxD_FOLDED defines non-empty 2018-12-29 13:37:57 +01:00
proc-fns.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
processor.h nds32: Process management 2018-02-22 10:44:32 +08:00
ptrace.h nds32: Exception handling 2018-02-22 10:44:31 +08:00
shmparam.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
string.h nds32: Library functions 2018-02-22 10:44:33 +08:00
swab.h nds32: Library functions 2018-02-22 10:44:33 +08:00
syscall.h nds32: System calls handling 2018-02-22 10:44:33 +08:00
syscalls.h nds32: System calls handling 2018-02-22 10:44:33 +08:00
thread_info.h nds32: Process management 2018-02-22 10:44:32 +08:00
tlb.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
tlbflush.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
uaccess.h nds32: Extract the checking and getting pointer to a macro 2018-09-04 14:45:17 +08:00
unistd.h nds32: System calls handling 2018-02-22 10:44:33 +08:00
vdso.h nds32: VDSO support 2018-02-22 10:44:33 +08:00
vdso_datapage.h UPSTREAM: nds32: Fix vDSO clock_getres() 2020-04-27 22:51:55 -07:00
vdso_timer_info.h nds32: VDSO support 2018-02-22 10:44:33 +08:00