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. Reviewed-by: Daniel Wagner <dwagner@xxxxxxx> --- src/cyclictest/cyclictest.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c index 5d1c08e8b8e0..35c57c782f30 100644 --- a/src/cyclictest/cyclictest.c +++ b/src/cyclictest/cyclictest.c @@ -1702,7 +1702,6 @@ int main(int argc, char **argv) int signum = SIGALRM; int mode; int cpu; - int max_cpus = sysconf(_SC_NPROCESSORS_ONLN); int i, ret = -1; int status; void *stack; @@ -1717,9 +1716,6 @@ int main(int argc, char **argv) if (check_privs()) exit(EXIT_FAILURE); - if (verbose) - printf("Max CPUs = %d\n", max_cpus); - /* Restrict the main pid to the affinity specified by the user */ if (affinity_mask) { int res; @@ -1728,10 +1724,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.29.2