aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/runtime/os_aix.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/runtime/os_aix.go')
-rw-r--r--libgo/go/runtime/os_aix.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/libgo/go/runtime/os_aix.go b/libgo/go/runtime/os_aix.go
index f49b83c..630a1c2 100644
--- a/libgo/go/runtime/os_aix.go
+++ b/libgo/go/runtime/os_aix.go
@@ -7,7 +7,6 @@
package runtime
import (
- "internal/cpu"
"unsafe"
)
@@ -122,28 +121,9 @@ func semawakeup(mp *m) {
func osinit() {
ncpu = int32(sysconf(__SC_NPROCESSORS_ONLN))
physPageSize = uintptr(sysconf(__SC_PAGE_SIZE))
- setupSystemConf()
}
const (
_CLOCK_REALTIME = 9
_CLOCK_MONOTONIC = 10
)
-
-const (
- // getsystemcfg constants
- _IMPL_POWER8 = 0x10000
- _IMPL_POWER9 = 0x20000
-)
-
-// setupSystemConf retrieves information about the CPU and updates
-// cpu.HWCap variables.
-func setupSystemConf() {
- impl := getsystemcfg(_SC_IMPL)
- if impl&_IMPL_POWER8 != 0 {
- cpu.HWCap2 |= cpu.PPC_FEATURE2_ARCH_2_07
- }
- if impl&_IMPL_POWER9 != 0 {
- cpu.HWCap2 |= cpu.PPC_FEATURE2_ARCH_3_00
- }
-}