Remove depreceated function ccTopology.CpuList()

This commit is contained in:
Holger Obermaier
2026-02-16 11:34:54 +01:00
parent 47e68dfd2f
commit 9bb21b807a
2 changed files with 1 additions and 7 deletions

View File

@@ -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

View File

@@ -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)