Merge pull request #2722 from ludovic-henry/fix-39279-docker-cpu-count
authormonojenkins <jo.shields+jenkins@xamarin.com>
Fri, 4 Mar 2016 18:00:30 +0000 (18:00 +0000)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Fri, 4 Mar 2016 18:00:30 +0000 (18:00 +0000)
commit1dca08f9434e5b474edfb8e311e7ad96b8c26961
tree1e26adcacfd79179805bf7c7a07ceaf9d12dace2
parent4428d538123e48267b4ced413e1be2fdc4011b9a
parent6a635a42ce2beb9c32471b0379165fdd4cd75f73
Merge pull request #2722 from ludovic-henry/fix-39279-docker-cpu-count

[utils] Get processor count from scheduler affinity if available

In case the user has set a scheduler CPU affinity, we should use it as the number of available CPU for the runtime. This is particularly important on docket which uses cgroups that set the container a cpu affinity, and by not using that, the runtime report the total number of CPU the machine has, and not the number of CPU the container has.

Fixes bug https://bugzilla.xamarin.com/show_bug.cgi?id=39279
configure.ac