From bc84ac1358d49a5391724f28dc55e178efdf18bc Mon Sep 17 00:00:00 2001 From: Paul Osborne Date: Mon, 20 Apr 2015 22:18:06 -0500 Subject: 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. --- src/sched.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3