blob: 76c1d8b3ac1c6d1bc800e1ee8156267d3dd5762b [file] [log] [blame]
//go:build !darwin || !arm64 || !cgo
package m1cpu
// IsAppleSilicon return false on this platform.
func IsAppleSilicon() bool {
return false
}
// PCoreHZ returns the max frequency in Hertz of the P-Core of an Apple Silicon CPU.
func PCoreHz() uint64 {
panic("m1cpu: not a darwin/arm64 system")
}
// ECoreHZ returns the max frequency in Hertz of the E-Core of an Apple Silicon CPU.
func ECoreHz() uint64 {
panic("m1cpu: not a darwin/arm64 system")
}
// PCoreGHz returns the max frequency in Gigahertz of the P-Core of an Apple Silicon CPU.
func PCoreGHz() float64 {
panic("m1cpu: not a darwin/arm64 system")
}
// ECoreGHz returns the max frequency in Gigahertz of the E-Core of an Apple Silicon CPU.
func ECoreGHz() float64 {
panic("m1cpu: not a darwin/arm64 system")
}