cpu_linux.go 361 B

12345678910111213141516
  1. // Copyright 2018 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build !386 && !amd64 && !amd64p32 && !arm64
  5. // +build !386,!amd64,!amd64p32,!arm64
  6. package cpu
  7. func archInit() {
  8. if err := readHWCAP(); err != nil {
  9. return
  10. }
  11. doinit()
  12. Initialized = true
  13. }