From 9bb21b807a9d94ef6607262d38276c59a93e6e23 Mon Sep 17 00:00:00 2001 From: Holger Obermaier <40787752+ho-ob@users.noreply.github.com> Date: Mon, 16 Feb 2026 11:34:54 +0100 Subject: [PATCH] Remove depreceated function ccTopology.CpuList() --- collectors/likwidMetric.go | 2 +- pkg/ccTopology/ccTopology.go | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/collectors/likwidMetric.go b/collectors/likwidMetric.go index e8bcce0..3db84cf 100644 --- a/collectors/likwidMetric.go +++ b/collectors/likwidMetric.go @@ -142,7 +142,7 @@ func genLikwidEventSet(input LikwidCollectorEventsetConfig) LikwidEventsetConfig estr := strings.Join(tmplist, ",") res := make(map[int]map[string]float64) met := make(map[int]map[string]float64) - for _, i := range topo.CpuList() { + for _, i := range topo.HwthreadList() { res[i] = make(map[string]float64) for k := range input.Events { res[i][k] = 0.0 diff --git a/pkg/ccTopology/ccTopology.go b/pkg/ccTopology/ccTopology.go index 0b1bf17..8763835 100644 --- a/pkg/ccTopology/ccTopology.go +++ b/pkg/ccTopology/ccTopology.go @@ -259,12 +259,6 @@ func HwthreadList() []int { return slices.Clone(cache.HwthreadList) } -// Get list of hardware thread IDs in the order of listing in /proc/cpuinfo -// Deprecated! Use HwthreadList() -func CpuList() []int { - return HwthreadList() -} - // CoreList gets the list of CPU core IDs in the order of listing in /proc/cpuinfo func CoreList() []int { return slices.Clone(cache.CoreList)