Files
scrutiny/vendor/github.com/jaypipes/ghw/cpu_stub.go
T
2020-08-21 06:31:48 +00:00

30 lines
724 B
Go

// +build !linux,!windows
// Use and distribution licensed under the Apache license version 2.
//
// See the COPYING file in the root project directory for full text.
//
package ghw
import (
"runtime"
"github.com/pkg/errors"
)
func (ctx *context) cpuFillInfo(info *CPUInfo) error {
return errors.New("cpuFillInfo not implemented on " + runtime.GOOS)
}
// Processors has been DEPRECATED in 0.2 and will be REMOVED in 1.0. Please use
// the CPUInfo.Processors attribute.
// TODO(jaypipes): Remove in 1.0
func Processors() []*Processor {
return nil
}
// TODO: remove
func (ctx *context) coresForNode(nodeID int) ([]*ProcessorCore, error) {
return nil, errors.New("coresForNode not implemented on " + runtime.GOOS)
}