[PATCH rt-tests v4 14/16] cyclictest: Remove max cpus used verbose information
From: Daniel Wagner <hidden>
Date: 2021-02-10 13:37:15
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Daniel Wagner <hidden>
Date: 2021-02-10 13:37:15
Subsystem:
the rest · Maintainer:
Linus Torvalds
Since we always print the thread placement in verbose mode now, there is no need to print the max_cpus anymore. With the last of max_cpus gone, we can also remove the sysconf() call. Signed-off-by: Daniel Wagner <redacted> --- src/cyclictest/cyclictest.c | 11 ----------- 1 file changed, 11 deletions(-)
diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
index 7a0501031857..8356786a80bb 100644
--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c@@ -1697,8 +1697,6 @@ int main(int argc, char **argv) int signum = SIGALRM; int mode; int cpu; - int max_cpus = sysconf(_SC_NPROCESSORS_CONF); - int online_cpus = sysconf(_SC_NPROCESSORS_ONLN); int i, ret = -1; int status; void *stack;
@@ -1713,11 +1711,6 @@ int main(int argc, char **argv) if (check_privs()) exit(EXIT_FAILURE); - if (verbose) { - printf("Max CPUs = %d\n", max_cpus); - printf("Online CPUs = %d\n", online_cpus); - } - /* Restrict the main pid to the affinity specified by the user */ if (affinity_mask) { int res;
@@ -1726,10 +1719,6 @@ int main(int argc, char **argv) res = numa_sched_setaffinity(getpid(), affinity_mask); if (res != 0) warn("Couldn't setaffinity in main thread: %s\n", strerror(errno)); - - if (verbose) - printf("Using %u cpus.\n", - numa_bitmask_weight(affinity_mask)); } if (trigger) {
--
2.30.0