sparc: perf: fix updated event period in response to PERF_EVENT_IOC_PERIOD
Young Xiao authored
[ Upstream commit 56cd0aef ]

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 3581fe0e

 ("ARM: 7556/1: perf: fix updated event period in
response to PERF_EVENT_IOC_PERIOD") for details.
Signed-off-by: default avatarYoung Xiao <92siuyang@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
d52a6839
Name Last commit Last update
Documentation tcp: add tcp_min_snd_mss sysctl
arch sparc: perf: fix updated event period in response to PERF_EVENT_IOC_PERIOD
block block, bfq: increase idling for weight-raised queues
certs Replace magic for trusting the secondary keyring with #define
crypto crypto: ccm - fix incompatibility between "ccm" and "ccm_base"
drivers net: hns: Fix loopback test failed at copper ports
firmware License cleanup: add SPDX GPL-2.0 license identifier to files with no license
fs Abort file_remove_privs() for non-reg. files
include coredump: fix race condition between collapse_huge_page() and core dumping
init init: initialize jump labels before command line option parsing
ipc ipc: prevent lockup on alloc_msg and free_msg
kernel tracing: Silence GCC 9 array bounds warning
lib test_firmware: Use correct snprintf() limit
mm coredump: fix race condition between collapse_huge_page() and core dumping
net ipvs: Fix use-after-free in ip_vs_in
samples samples: mei: use /dev/mei0 instead of /dev/mei
scripts fs: stream_open - opener for stream-like files so that read and write can run simultaneously without deadlock
security apparmor: enforce nullbyte at end of tag string
sound ALSA: hda - Force polling mode on CNL for fixing codec communication
tools objtool: Support per-function rodata sections
usr initramfs: fix initramfs rebuilds w/ compression after disabling
virt KVM: s390: Do not report unusabled IDs via KVM_CAP_MAX_VCPU_ID
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Add hch to .get_maintainer.ignore
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.