On 17-Jan-25 8:49 PM, kan.liang@xxxxxxxxxxxxxxx wrote: > From: Kan Liang <kan.liang@xxxxxxxxxxxxxxx> > > A low freq cannot be set via IOC_PERIOD on some platforms. > > The perf_event_check_period() introduced in commit 81ec3f3c4c4d > ("perf/x86: Add check_period PMU callback") intended to check the > period, rather than the freq. A low freq may be mistakenly rejected by > the limit_period(). > > Fixes: 81ec3f3c4c4d ("perf/x86: Add check_period PMU callback") > Closes: https://lore.kernel.org/lkml/20250115154949.3147-1-ravi.bangoria@xxxxxxx/ > Signed-off-by: Kan Liang <kan.liang@xxxxxxxxxxxxxxx> > Cc: Jiri Olsa <jolsa@xxxxxxxxxx> > Cc: Ravi Bangoria <ravi.bangoria@xxxxxxx> > Cc: stable@xxxxxxxxxxxxxxx Reviewed-by: Ravi Bangoria <ravi.bangoria@xxxxxxx> Thanks, Ravi