diff options
| author | Kan Liang <[email protected]> | 2025-01-17 15:19:12 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2025-02-25 13:54:14 +0000 |
| commit | 0d39844150546fa1415127c5fbae26db64070dd3 (patch) | |
| tree | 4ec6b68c342a4323b226c1758094210a3b26224f /net/unix/sysctl_net_unix.c | |
| parent | perf/x86: Fix low freqency setting issue (diff) | |
| download | kernel-0d39844150546fa1415127c5fbae26db64070dd3.tar.gz kernel-0d39844150546fa1415127c5fbae26db64070dd3.zip | |
perf/core: Fix low freq setting via IOC_PERIOD
A low attr::freq value cannot be set via IOC_PERIOD on some platforms.
The perf_event_check_period() introduced in:
81ec3f3c4c4d ("perf/x86: Add check_period PMU callback")
was intended to check the period, rather than the frequency.
A low frequency may be mistakenly rejected by limit_period().
Fix it.
Fixes: 81ec3f3c4c4d ("perf/x86: Add check_period PMU callback")
Signed-off-by: Kan Liang <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Reviewed-by: Ravi Bangoria <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Closes: https://lore.kernel.org/lkml/[email protected]/
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
