linux/arch
Vincenzo Frascino 5522634562 powerpc: 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 powerpc vdso implementation of clock_getres keeping a copy of
hrtimer_resolution in vdso data and using that directly.

Fixes: a7f290dad3 ("[PATCH] powerpc: Merge vdso's and add vdso support to 32 bits kernel")
Cc: stable@vger.kernel.org
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
[chleroy: changed CLOCK_REALTIME_RES to CLOCK_HRTIMER_RES]
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a55eca3a5e85233838c2349783bcb5164dae1d09.1575273217.git.christophe.leroy@c-s.fr
2019-12-05 00:13:55 +11:00
..
alpha pci-v5.5-changes 2019-12-03 13:58:22 -08:00
arc pci-v5.5-changes 2019-12-03 13:58:22 -08:00
arm TTY/Serial patches for 5.5-rc1 2019-12-03 14:09:14 -08:00
arm64 pci-v5.5-changes 2019-12-03 13:58:22 -08:00
c6x dma-mapping updates for 5.5-rc1 2019-11-28 11:16:43 -08:00
csky dma-mapping updates for 5.5-rc1 2019-11-28 11:16:43 -08:00
h8300 h8300: Move EXCEPTION_TABLE to RO_DATA segment 2019-11-04 18:12:55 +01:00
hexagon Kbuild updates for v5.5 2019-12-02 17:35:04 -08:00
ia64 Kbuild updates for v5.5 2019-12-02 17:35:04 -08:00
m68k Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2019-12-01 13:26:18 -08:00
microblaze dma-mapping updates for 5.5-rc1 2019-11-28 11:16:43 -08:00
mips pci-v5.5-changes 2019-12-03 13:58:22 -08:00
nds32 y2038: syscall implementation cleanups 2019-12-01 14:00:59 -08:00
nios2 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2019-12-01 13:26:18 -08:00
openrisc OpenRISC updates for 5.5 2019-12-02 17:18:43 -08:00
parisc y2038: syscall implementation cleanups 2019-12-01 14:00:59 -08:00
powerpc powerpc: Fix vDSO clock_getres() 2019-12-05 00:13:55 +11:00
riscv pci-v5.5-changes 2019-12-03 13:58:22 -08:00
s390 pci-v5.5-changes 2019-12-03 13:58:22 -08:00
sh - New Functionality 2019-12-01 16:13:39 -08:00
sparc pci-v5.5-changes 2019-12-03 13:58:22 -08:00
um This pull request contains the following changes for UML: 2019-12-02 17:14:02 -08:00
unicore32 generic ioremap support 2019-11-28 10:57:12 -08:00
x86 pci-v5.5-changes 2019-12-03 13:58:22 -08:00
xtensa Xtensa updates for v5.5: 2019-12-03 12:46:44 -08:00
.gitignore
Kconfig Merge branch 'akpm' (patches from Andrew) 2019-12-01 20:36:41 -08:00