]> Cypherpunks repositories - gostls13.git/commit
internal/cpu: report CPU if known on PPC64
authorPaul E. Murphy <murp@ibm.com>
Thu, 5 May 2022 15:27:24 +0000 (10:27 -0500)
committerPaul Murphy <murp@ibm.com>
Tue, 10 May 2022 20:05:43 +0000 (20:05 +0000)
commit51859ec2292d9c1d82a7054ec672ff551a0d7497
treec6521749319aff366d7c10ad4be62bcaa9cac504
parent0c43878baa035db39d9bbf84ce8721cd8a97c78a
internal/cpu: report CPU if known on PPC64

The PPC64 maintainers are testing on P10 hardware, so it is helpful
to report the correct cpu, even if this information is not used
elsewhere yet.

Note, AIX will report the current CPU of the host system, so a
POWER10 will not set the IsPOWER9 flag. This is existing behavior,
and should be fixed in a separate patch.

Change-Id: Iebe23dd96ebe03c8a1c70d1ed2dc1506bad3c330
Reviewed-on: https://go-review.googlesource.com/c/go/+/404394
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Paul Murphy <murp@ibm.com>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
src/internal/cpu/cpu.go
src/internal/cpu/cpu_no_name.go
src/internal/cpu/cpu_ppc64x.go
src/internal/cpu/cpu_ppc64x_aix.go
src/internal/cpu/cpu_ppc64x_linux.go