kernel-fxtec-pro1x/arch/sparc
Young Xiao 16cdab6398 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-06-25 11:35:57 +08:00
..
boot
configs
crypto crypto: shash - remove useless setting of type flags 2018-07-09 00:30:24 +08:00
include sparc64: Make corrupted user stacks more debuggable. 2018-11-04 14:50:54 +01:00
kernel sparc: perf: fix updated event period in response to PERF_EVENT_IOC_PERIOD 2019-06-25 11:35:57 +08:00
lib atomics/treewide: Rename __atomic_add_unless() => atomic_fetch_add_unless() 2018-06-21 14:22:32 +02:00
math-emu
mm sparc64: Fix regression in non-hypervisor TLB flush xcall 2019-06-09 09:17:10 +02:00
net treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
oprofile
power
prom
vdso sparc: vDSO: Silence an uninitialized variable warning 2018-10-17 21:55:02 -07:00
Kbuild
Kconfig sparc32: switch to NO_BOOTMEM 2018-08-21 12:40:26 -07:00
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Makefile Kbuild updates for v4.19 (2nd) 2018-08-25 13:40:38 -07:00