From d4c17cdaf1f72a872dcbe12952412f02810c29b5 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 27 Oct 2015 05:58:19 -0500 Subject: Replace xcount_cpus() with a call to sysconf(_SC_NPROCESSORS_CONF) --- toys/other/taskset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/other/taskset.c') diff --git a/toys/other/taskset.c b/toys/other/taskset.c index 29ce3173..abc38723 100644 --- a/toys/other/taskset.c +++ b/toys/other/taskset.c @@ -127,7 +127,7 @@ void nproc_main(void) } // If getaffinity failed or --all, count cpu entries in proc - if (!nproc) nproc = xcount_cpus(); + if (!nproc) nproc = sysconf(_SC_NPROCESSORS_CONF); xprintf("%u\n", nproc); } -- cgit v1.2.3