From daa821d5bdd9bba6a2e3e810d06f2b79b1fb9604 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Wed, 18 Jan 2023 11:56:51 +0200 Subject: [PATCH] cpuallocator: fix cpu priority discovery The CPU priorities were discovered correctly but not stored in the cpuallocator so they were effectively discarded. --- pkg/cpuallocator/allocator.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cpuallocator/allocator.go b/pkg/cpuallocator/allocator.go index e643ba010..e41ef61a1 100644 --- a/pkg/cpuallocator/allocator.go +++ b/pkg/cpuallocator/allocator.go @@ -428,6 +428,7 @@ func (c *topologyCache) discoverCPUPriorities(sys sysfs.System) { prio[p] = prio[p].Union(cset) } } + c.cpuPriorities = prio } func (c *topologyCache) discoverSstCPUPriority(sys sysfs.System, pkgID idset.ID) ([NumCPUPriorities][]idset.ID, bool) {