@@ -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) {
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 <dwagner@suse.de> --- src/cyclictest/cyclictest.c | 11 ----------- 1 file changed, 11 deletions(-)