mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-28 04:46:44 -04:00
cpu: move empty doinit to own file
Avoids each GOARCH having to define an empty doinit for GOOS=linux Change-Id: Ic7cea1be4a35c31593c4f867478194b82dd53613 Reviewed-on: https://go-review.googlesource.com/c/sys/+/206859 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
8ad3422571
commit
e43da5d1f2
@@ -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() {}
|
||||||
@@ -7,5 +7,3 @@
|
|||||||
package cpu
|
package cpu
|
||||||
|
|
||||||
const cacheLineSize = 32
|
const cacheLineSize = 32
|
||||||
|
|
||||||
func doinit() {}
|
|
||||||
|
|||||||
@@ -7,5 +7,3 @@
|
|||||||
package cpu
|
package cpu
|
||||||
|
|
||||||
const cacheLineSize = 32
|
const cacheLineSize = 32
|
||||||
|
|
||||||
func doinit() {}
|
|
||||||
|
|||||||
@@ -7,5 +7,3 @@
|
|||||||
package cpu
|
package cpu
|
||||||
|
|
||||||
const cacheLineSize = 64
|
const cacheLineSize = 64
|
||||||
|
|
||||||
func doinit() {}
|
|
||||||
|
|||||||
@@ -11,5 +11,3 @@ package cpu
|
|||||||
// rules are good enough.
|
// rules are good enough.
|
||||||
|
|
||||||
const cacheLineSize = 0
|
const cacheLineSize = 0
|
||||||
|
|
||||||
func doinit() {}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user