cpupick: Move AvoidCPUs from util into cpupick as Avoid

This commit is contained in:
JackDoan committed 2026-10-15 12:00:28 -05:00
1 parent 73d26dd87d
commit 36579bae03
6 files changed
+35 -29

No files matched your search

+4
View File
@@ -16,6 +16,10 @@
// across distinct physical cores when the topology permits, CPU 0's physical
// core demoted to last resort, and the order rotated by a stable per-instance
// key so co-located instances spread instead of stacking.
//
// Avoid narrows the process-wide allowed set before any of that happens
// (tun.avoid_cpus), so Default and tun.cpu_affinity validation only ever see
// the CPUs left over.
package cpupick
import (