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

+1 -1
View File
@@ -443,7 +443,7 @@ func configureAvoidCPUs(c *config.C, l *slog.Logger, configTest bool) error {
if len(cpus) == 0 {
return nil
}
if err := util.AvoidCPUs(cpus, !configTest); err != nil {
if err := cpupick.Avoid(cpus, !configTest); err != nil {
if errors.Is(err, errors.ErrUnsupported) {
l.Warn("tun.avoid_cpus is only supported on Linux; ignoring")
return nil