android_kernel_oneplus_msm8998/arch/sparc
Young Xiao 37515df6b4 sparc: perf: fix updated event period in response to PERF_EVENT_IOC_PERIOD
[ Upstream commit 56cd0aefa475079e9613085b14a0f05037518fed ]

The PERF_EVENT_IOC_PERIOD ioctl command can be used to change the
sample period of a running perf_event. Consequently, when calculating
the next event period, the new period will only be considered after the
previous one has overflowed.

This patch changes the calculation of the remaining event ticks so that
they are offset if the period has changed.

See commit 3581fe0ef3 ("ARM: 7556/1: perf: fix updated event period in
response to PERF_EVENT_IOC_PERIOD") for details.

Signed-off-by: Young Xiao <92siuyang@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-07-10 09:56:32 +02:00
..
boot
configs
crypto
include sparc64 mm: Fix more TSB sizing issues 2018-11-10 07:41:39 -08:00
kernel sparc: perf: fix updated event period in response to PERF_EVENT_IOC_PERIOD 2019-07-10 09:56:32 +02:00
lib sparc64: Fix exception handling in UltraSPARC-III memcpy. 2018-11-10 07:41:39 -08:00
math-emu
mm sparc64: Fix regression in non-hypervisor TLB flush xcall 2019-06-11 12:24:08 +02:00
net
oprofile
power sparc64: Prevent perf from running during super critical sections 2017-08-12 19:29:09 -07:00
prom
Kbuild
Kconfig security/keys: add CONFIG_KEYS_COMPAT to Kconfig 2017-11-18 11:11:07 +01:00
Kconfig.debug
Makefile