]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: move NumCPU declaration into debug.go.
authorDavid Symonds <dsymonds@golang.org>
Wed, 25 Jan 2012 03:13:11 +0000 (14:13 +1100)
committerDavid Symonds <dsymonds@golang.org>
Wed, 25 Jan 2012 03:13:11 +0000 (14:13 +1100)
R=rsc
CC=golang-dev
https://golang.org/cl/5574060

src/pkg/runtime/debug.go
src/pkg/runtime/extern.go

index c2b90566a9989e6f20b7e859e7b8dac01380afad..4f09146fac172640a9acf7280589e41b92d21098 100644 (file)
@@ -23,6 +23,9 @@ func UnlockOSThread()
 // This call will go away when the scheduler improves.
 func GOMAXPROCS(n int) int
 
+// NumCPU returns the number of logical CPUs on the local machine.
+func NumCPU() int
+
 // Cgocalls returns the number of cgo calls made by the current process.
 func Cgocalls() int64
 
index 88598cb7d4b116f4c6c95b7309639973e579388b..eafa2f19f19e929ddbaf17617ad49922eba602bd 100644 (file)
@@ -68,9 +68,6 @@ func funcline_go(*Func, uintptr) (string, int)
 // mid returns the current os thread (m) id.
 func mid() uint32
 
-// NumCPU returns the number of logical CPUs on the local machine.
-func NumCPU() int
-
 // Semacquire waits until *s > 0 and then atomically decrements it.
 // It is intended as a simple sleep primitive for use by the synchronization
 // library and should not be used directly.