mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
perf test amd ibs: Fix incorrect kernel version check
"AMD IBS sample period" unit test is getting skipped on kernel v7.x. Fix
the kernel version >= v6.15 check.
Fixes: 21fb366b2f ("perf test amd: Skip amd-ibs-period test on kernel < v6.15")
Signed-off-by: Ravi Bangoria <ravi.bangoria@amd.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ananth Narayan <ananth.narayan@amd.com>
Cc: Dapeng Mi <dapeng1.mi@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Manali Shukla <manali.shukla@amd.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ravi Bangoria <ravi.bangoria@amd.com>
Cc: Sandipan Das <sandipan.das@amd.com>
Cc: Santosh Shukla <santosh.shukla@amd.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
e898c505b0
commit
0b97e92393
|
|
@ -932,7 +932,7 @@ static bool kernel_v6_15_or_newer(void)
|
|||
endptr++;
|
||||
minor = strtol(endptr, NULL, 10);
|
||||
|
||||
return major >= 6 && minor >= 15;
|
||||
return major > 6 || (major == 6 && minor >= 15);
|
||||
}
|
||||
|
||||
int test__amd_ibs_period(struct test_suite *test __maybe_unused,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user