diff --git a/cpu/cpu_linux_noinit.go b/cpu/cpu_linux_noinit.go new file mode 100644 index 00000000..192198e3 --- /dev/null +++ b/cpu/cpu_linux_noinit.go @@ -0,0 +1,9 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build linux,!arm,!arm64,!s390x,!ppc64 + +package cpu + +func doinit() {} diff --git a/cpu/cpu_mips64x.go b/cpu/cpu_mips64x.go index f55e0c82..6165f121 100644 --- a/cpu/cpu_mips64x.go +++ b/cpu/cpu_mips64x.go @@ -7,5 +7,3 @@ package cpu const cacheLineSize = 32 - -func doinit() {} diff --git a/cpu/cpu_mipsx.go b/cpu/cpu_mipsx.go index cda87b1a..1269eee8 100644 --- a/cpu/cpu_mipsx.go +++ b/cpu/cpu_mipsx.go @@ -7,5 +7,3 @@ package cpu const cacheLineSize = 32 - -func doinit() {} diff --git a/cpu/cpu_other_arm64.go b/cpu/cpu_other_arm64.go index dd1e76dc..e1f31dd2 100644 --- a/cpu/cpu_other_arm64.go +++ b/cpu/cpu_other_arm64.go @@ -7,5 +7,3 @@ package cpu const cacheLineSize = 64 - -func doinit() {} diff --git a/cpu/cpu_wasm.go b/cpu/cpu_wasm.go index bd9bbda0..8681e876 100644 --- a/cpu/cpu_wasm.go +++ b/cpu/cpu_wasm.go @@ -11,5 +11,3 @@ package cpu // rules are good enough. const cacheLineSize = 0 - -func doinit() {}