aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/libgo/runtime/getncpu-solaris.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8.1/libgo/runtime/getncpu-solaris.c')
-rw-r--r--gcc-4.8.1/libgo/runtime/getncpu-solaris.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gcc-4.8.1/libgo/runtime/getncpu-solaris.c b/gcc-4.8.1/libgo/runtime/getncpu-solaris.c
deleted file mode 100644
index 5d5d7025d..000000000
--- a/gcc-4.8.1/libgo/runtime/getncpu-solaris.c
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright 2012 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.
-
-#include <unistd.h>
-
-#include "runtime.h"
-#include "defs.h"
-
-int32
-getproccount(void)
-{
- int32 n;
- n = (int32)sysconf(_SC_NPROCESSORS_ONLN);
- return n > 1 ? n : 1;
-}