summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKan Liang <kan.liang@linux.intel.com>2025-01-17 07:19:12 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-03-07 18:25:38 +0100
commit322cb23e24c8e3cbe843499fe6fc6fbd9138362e (patch)
treed3545b8d37063aabfa960128b0bc5f5b772c1dab /scripts
parentbf6e873ad7326ca8edc2758f458aa2fe7e433077 (diff)
downloadlinux-322cb23e24c8e3cbe843499fe6fc6fbd9138362e.tar.gz
linux-322cb23e24c8e3cbe843499fe6fc6fbd9138362e.tar.bz2
linux-322cb23e24c8e3cbe843499fe6fc6fbd9138362e.zip
perf/core: Fix low freq setting via IOC_PERIOD
commit 0d39844150546fa1415127c5fbae26db64070dd3 upstream. 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 <kan.liang@linux.intel.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Reviewed-by: Ravi Bangoria <ravi.bangoria@amd.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20250117151913.3043942-2-kan.liang@linux.intel.com Closes: https://lore.kernel.org/lkml/20250115154949.3147-1-ravi.bangoria@amd.com/ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions