scoot pinning around

This commit is contained in:
JackDoan
2026-05-05 12:58:33 -05:00
parent bc3f5d0400
commit 67bd9e848a
4 changed files with 9 additions and 7 deletions

11
util/cpupin_other.go Normal file
View File

@@ -0,0 +1,11 @@
//go:build !linux || android || e2e_testing
package util
// PinThreadToCPU is a no-op outside Linux: only Linux exposes a stable
// per-thread CPU affinity API and only Linux has XPS-driven TX ring
// selection in the first place. On every other platform there's nothing
// to fix here.
func PinThreadToCPU(_ int) error {
return nil
}