]> Cypherpunks repositories - gostls13.git/commit
internal/sysinfo: implement CPUName on bsd systems
authorRuss Cox <rsc@golang.org>
Thu, 17 Aug 2023 19:44:20 +0000 (15:44 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 28 Mar 2024 14:40:31 +0000 (14:40 +0000)
commited9aed1c9d7dd340006f22b96e1ee4476582b874
tree29148dcab5efe70227bc02d6f35efba4c9222ddc
parent2e1003e2f7e42efc5771812b9ee6ed264803796c
internal/sysinfo: implement CPUName on bsd systems

sysctl machdep.cpu.brand_string seems to be standard
across the BSDs. There does not seem to be a standard
way to get the CPU frequency.

Change-Id: Ic986d6c81dd54e1b84544317f2a53ce16801319b
Reviewed-on: https://go-review.googlesource.com/c/go/+/520636
Auto-Submit: Russ Cox <rsc@golang.org>
TryBot-Bypass: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/internal/sysinfo/cpuinfo_bsd.go [new file with mode: 0644]
src/internal/sysinfo/cpuinfo_stub.go
src/internal/sysinfo/export_test.go [new file with mode: 0644]
src/internal/sysinfo/sysinfo_test.go [new file with mode: 0644]