[PATCH v5 0/2] Fix perf adjust period algorithm

From: Luo Gengkun
Date: Sat Aug 31 2024 - 03:38:10 EST


---
Changes in v5:
1. Read the time once at the beginning instead of each loop
2. Add reviewed by
Link to v4: https://lore.kernel.org/all/20240821134227.577544-1-luogengkun@xxxxxxxxxxxxxxx/

Changes in v4:
1. Rebase the patch
2. Tidy up the commit message
3. Modify the code style
Link to v3: https://lore.kernel.org/all/20240810102406.1190402-1-luogengkun@xxxxxxxxxxxxxxx/

Changes in v3:
1. Replace perf_clock with jiffies in perf_adjust_freq_unthr_context
Link to v2: https://lore.kernel.org/all/20240417115446.2908769-1-luogengkun@xxxxxxxxxxxxxxx/

Changes in v2:
1. Add reviewed by for perf/core: Fix small negative period being ignored
2. Add new patch perf/core: Fix incorrected time diff in tick adjust period
Link to v1: https://lore.kernel.org/all/20240116083915.2859302-1-luogengkun2@xxxxxxxxxx/
---

Luo Gengkun (2):
perf/core: Fix small negative period being ignored
perf/core: Fix incorrect time diff in tick adjust period

include/linux/perf_event.h | 1 +
kernel/events/core.c | 18 ++++++++++++++----
2 files changed, 15 insertions(+), 4 deletions(-)

--
2.34.1