mirror of
https://github.com/golang/sys.git
synced 2026-02-09 12:16:04 +03:00
If a system has the ability to disable some cores, as on ppc64 with the ppc64_cpu command, then TestSchedSetaffinity will fail if the CPUset passed to Setaffinity includes one that has been disabled. This adds a check to use values from the oldMask, which are the valid cores returned from Getaffinity, to pass to Setaffinity. Fixes golang/go#27875 Change-Id: I9656f41867afc18e0eaedc4bdef5f75e137a1fcd Reviewed-on: https://go-review.googlesource.com/137675 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
12 KiB
12 KiB