Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Unified Diff: runtime/bin/platform_fuchsia.cc

Issue 2244253004: [fuchsia] Use sysconf to get number of processors (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/run_vm_tests_fuchsia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform_fuchsia.cc
diff --git a/runtime/bin/platform_fuchsia.cc b/runtime/bin/platform_fuchsia.cc
index 198521b84e2da0fed6ab91b4525f267fbfb9f616..3e636d1e1c74ef3406b800a27c78ffa673c4a97d 100644
--- a/runtime/bin/platform_fuchsia.cc
+++ b/runtime/bin/platform_fuchsia.cc
@@ -7,7 +7,6 @@
#include "bin/platform.h"
-#include <runtime/sysinfo.h>
#include <string.h> // NOLINT
#include <unistd.h> // NOLINT
@@ -28,7 +27,7 @@ bool Platform::Initialize() {
int Platform::NumberOfProcessors() {
- return mxr_get_nprocs_conf();
+ return sysconf(_SC_NPROCESSORS_CONF);
}
« no previous file with comments | « no previous file | runtime/bin/run_vm_tests_fuchsia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698