mirror of
https://github.com/torvalds/linux.git
synced 2026-04-26 10:32:25 -04:00
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 <memxor@gmail.com> Link: https://lore.kernel.org/r/20251125020749.2421610-2-memxor@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
committed by
Alexei Starovoitov
parent
8f6ddc0587
commit
224de8d5a3
@@ -182,7 +182,7 @@ static int bpf_test_rqspinlock_init(void)
|
||||
|
||||
pr_err("Mode = %s\n", rqsl_mode_names[test_mode]);
|
||||
|
||||
if (ncpus < 3)
|
||||
if (ncpus < test_mode + 2)
|
||||
return -ENOTSUPP;
|
||||
|
||||
raw_res_spin_lock_init(&lock_a);
|
||||
|
||||
Reference in New Issue
Block a user