]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] runtime: use sched_getaffinity for runtime.NumCPU() on Linux
authorShenghou Ma <minux.ma@gmail.com>
Fri, 21 Sep 2012 19:54:36 +0000 (05:54 +1000)
committerShenghou Ma <minux.ma@gmail.com>
Fri, 21 Sep 2012 19:54:36 +0000 (05:54 +1000)
commit43bf5e8ec8039f740cb4f6589eea736c96a0bdf4
tree14f6617487ea321e254bbe4f6ac49d50cc5828d7
parentbe1207e73511a93f9ae9b9321afc4ef8ee20692a
[release-branch.go1] runtime: use sched_getaffinity for runtime.NumCPU() on Linux

««« backport 3532ab6bf5be
runtime: use sched_getaffinity for runtime.NumCPU() on Linux
        Fixes #3921.

R=iant
CC=golang-dev
https://golang.org/cl/6448132

»»»
src/pkg/runtime/sys_linux_386.s
src/pkg/runtime/sys_linux_amd64.s
src/pkg/runtime/sys_linux_arm.s
src/pkg/runtime/thread_linux.c