Skip to content

Commit cbb0832

Browse files
kkdwvdKernel Patches Daemon
authored andcommitted
selftests/bpf: Relax CPU requirements for rqspinlock stress test
Only require 2 CPUs for AA, 3 for ABBA, 4 for ABBCCA, which is calculated nicely by adding to the mode enum. Enables running single CPU AA tests. Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
1 parent ae9b520 commit cbb0832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/test_kmods/bpf_test_rqspinlock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ static int bpf_test_rqspinlock_init(void)
182182

183183
pr_err("Mode = %s\n", rqsl_mode_names[test_mode]);
184184

185-
if (ncpus < 3)
185+
if (ncpus < test_mode + 2)
186186
return -ENOTSUPP;
187187

188188
raw_res_spin_lock_init(&lock_a);

0 commit comments

Comments
 (0)