[LTP] [PATCH v2 2/2] sched_football: use get_numcpus()
Attila Fazekas
afazekas@redhat.com
Fri Jan 17 14:57:45 CET 2025
sched_football can hang in systems where not all CPU cores
are available, using get_numcpus() to account
for things like isolated cores.
Signed-off-by: Attila Fazekas <afazekas@redhat.com>
---
testcases/realtime/func/sched_football/sched_football.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/realtime/func/sched_football/sched_football.c b/testcases/realtime/func/sched_football/sched_football.c
index 763b41f23..5ffc1ff46 100644
--- a/testcases/realtime/func/sched_football/sched_football.c
+++ b/testcases/realtime/func/sched_football/sched_football.c
@@ -140,7 +140,7 @@ static void do_test(void)
int i;
if (players_per_team == 0)
- players_per_team = sysconf(_SC_NPROCESSORS_ONLN);
+ players_per_team = get_numcpus();
tst_atomic_store(0, &players_ready);
--
2.47.1
More information about the ltp
mailing list