diff options
author | Joakim Hernberg <jhernberg@alchemy.lu> | 2014-07-23 21:06:54 +0200 |
---|---|---|
committer | Clark Williams <clark.williams@gmail.com> | 2014-07-23 16:16:16 -0500 |
commit | 629b13d338007f4a5e1c1b47fa446da7fca46ee0 (patch) | |
tree | be65c9d5abc9531b9f63966c406823e5eaea4945 | |
parent | c5f2a4436035fab1553636910329d7944f234fdf (diff) | |
download | rt-tests-629b13d338007f4a5e1c1b47fa446da7fca46ee0.tar.gz |
make SMP option only use online cpus.
-rw-r--r-- | src/cyclictest/cyclictest.c | 2 | ||||
-rw-r--r-- | src/cyclictest/rt_numa.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c index 4547831..92fc346 100644 --- a/src/cyclictest/cyclictest.c +++ b/src/cyclictest/cyclictest.c @@ -1740,7 +1740,7 @@ int main(int argc, char **argv) sigset_t sigset; int signum = SIGALRM; int mode; - int max_cpus = sysconf(_SC_NPROCESSORS_CONF); + int max_cpus = sysconf(_SC_NPROCESSORS_ONLN); int i, ret = -1; int status; diff --git a/src/cyclictest/rt_numa.h b/src/cyclictest/rt_numa.h index e64c446..c2b3e85 100644 --- a/src/cyclictest/rt_numa.h +++ b/src/cyclictest/rt_numa.h @@ -128,7 +128,7 @@ static int rt_numa_numa_node_of_cpu(int cpu) int max_node, max_cpus; max_node = numa_max_node(); - max_cpus = sysconf(_SC_NPROCESSORS_CONF); + max_cpus = sysconf(_SC_NPROCESSORS_ONLN); if (cpu > max_cpus) { errno = EINVAL; |