summaryrefslogtreecommitdiff
path: root/libgo/runtime/thread-sema.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/runtime/thread-sema.c')
-rw-r--r--libgo/runtime/thread-sema.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgo/runtime/thread-sema.c b/libgo/runtime/thread-sema.c
index 7d0acfb1ce1..18827b025d7 100644
--- a/libgo/runtime/thread-sema.c
+++ b/libgo/runtime/thread-sema.c
@@ -138,6 +138,7 @@ runtime_semawakeup (M *mp)
void
runtime_osinit (void)
{
+ runtime_ncpu = getproccount();
}
void