cpupin_other.go 338 B

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