android_kernel_samsung_a7y1.../arch/powerpc
Vincenzo Frascino 07ff9c93c6 powerpc: Fix vDSO clock_getres()
[ Upstream commit 552263456215ada7ee8700ce022d12b0cffe4802 ]

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: a7f290dad32e ("[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
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 13:08:04 +02:00
..
boot powerpc/44x/bamboo: Fix PCI range 2020-04-07 12:42:23 +02:00
configs A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crypto A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
include powerpc: Fix vDSO clock_getres() 2020-04-07 13:08:04 +02:00
kernel powerpc: Fix vDSO clock_getres() 2020-04-07 13:08:04 +02:00
kvm KVM: PPC: Book3S HV: Flush link stack on guest exit to host kernel 2020-04-07 12:37:54 +02:00
lib powerpc/lib: fix book3s/32 boot failure due to code patching 2020-04-06 17:01:53 +02:00
math-emu A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mm powerpc/mm: Make NULL pointer deferences explicit on bad page faults. 2020-04-07 12:42:21 +02:00
net A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
oprofile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
perf A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
platforms powerpc/pseries/dlpar: Fix a missing check in dlpar_parse_cc_property() 2020-04-07 12:43:12 +02:00
sysdev powerpc/4xx/uic: clear pending interrupt after irq type/pol change 2020-04-06 20:06:22 +02:00
xmon powerpc/xmon: fix dump_segments() 2020-04-07 12:42:01 +02:00
Kconfig powerpc/fsl: Add barrier_nospec implementation for NXP PowerPC Book3E 2020-04-06 16:40:00 +02:00
Kconfig.debug A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile powerpc: Fix compiling a BE kernel with a powerpc64le toolchain 2020-04-07 11:59:46 +02:00
relocs_check.sh A750FXXU4CTBC 2020-03-27 21:51:54 +05:30