Skip to content

Commit

Permalink
Remove the rest of SMT checking
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissnell committed Feb 4, 2022
1 parent 45bac82 commit 3973ca3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cpu/cpu_openbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"runtime"
"strconv"
"strings"
"syscall"

"github.com/shirou/gopsutil/v3/internal/common"
"github.com/tklauser/go-sysconf"
Expand Down Expand Up @@ -76,15 +75,6 @@ func TimesWithContext(ctx context.Context, percpu bool) ([]TimesStat, error) {
ncpu = 1
}

smt, err := smt()
if err == syscall.EOPNOTSUPP {
// if hw.smt is not applicable for this platform (e.g. i386),
// pretend it's enabled
smt = true
} else if err != nil {
return nil, err
}

for i := 0; i < ncpu; i++ {

cpuTimes := make([]int32, cpUStates)
Expand Down

0 comments on commit 3973ca3

Please sign in to comment.