summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Osborne <osbpau@gmail.com>2015-04-20 22:18:06 -0500
committerCarl Lerche <me@carllerche.com>2015-04-24 16:12:56 -0700
commitbc84ac1358d49a5391724f28dc55e178efdf18bc (patch)
tree0a08ad64e9de646b7193b61427644a7d1b16ffb6
parente17c4b652dc17c6d82547e5f7c2dbaadda188411 (diff)
downloadnix-bc84ac1358d49a5391724f28dc55e178efdf18bc.zip
sched: add support for arm linux using same cpuset_attribs as android
The limit of 32 cores may not actually be a limit with arm-linux, but I am not aware of anything in excess of 32 processors out there currently and this is what I have been running for awhile now on a beaglebone black (`--target=arm-unknown-linux-gnueabihf`). This change addresses #95 and relates to #97.
-rw-r--r--src/sched.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sched.rs b/src/sched.rs
index c1746f2e..3c9d87e8 100644
--- a/src/sched.rs
+++ b/src/sched.rs
@@ -63,7 +63,7 @@ mod cpuset_attribs {
}
}
-#[cfg(all(target_arch = "arm", target_os = "android"))]
+#[cfg(all(target_arch = "arm", any(target_os = "linux", target_os = "android")))]
mod cpuset_attribs {
use super::CpuMask;
// bionic only supports up to 32 independent CPUs, instead of 1024.