]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/mm: don't fail uffd-stress if too many CPUs
authorBrendan Jackman <jackmanb@google.com>
Fri, 21 Feb 2025 18:25:46 +0000 (18:25 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 28 Feb 2025 01:00:27 +0000 (17:00 -0800)
commit554273f6e5dac6cd47bd88363c8a2bd22c6de131
tree215b6ce6f912c7eea8096122a226d208fda3049c
parent55873c6c50e200974837c1b9f68e88ee02ad73e3
selftests/mm: don't fail uffd-stress if too many CPUs

This calculation divides a fixed parameter by an environment-dependent
parameter i.e.  the number of CPUs.

The simple way to avoid machine-specific failures here is to just put a
cap on the max value of the latter.

Link: https://lkml.kernel.org/r/20250221-mm-selftests-v2-7-28c4d66383c5@google.com
Signed-off-by: Brendan Jackman <jackmanb@google.com>
Suggested-by: Mateusz Guzik <mjguzik@gmail.com>
Cc: Dev Jain <dev.jain@arm.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/uffd-stress.c