diff mbox

[PATCHv3,2/2] linux-generic:odp_system_info.c:sysconf_cpu_count() report online cores

Message ID 1420647839-23553-3-git-send-email-ola.liljedahl@linaro.org
State Accepted
Commit 85b20342913325e201a9f2f658492159055656d0
Headers show

Commit Message

Ola Liljedahl Jan. 7, 2015, 4:23 p.m. UTC
As ODP cannot bring configured but offline cores online only report number
of cores already online.

Signed-off-by: Ola Liljedahl <ola.liljedahl@linaro.org>
---
(This document/code contribution attached is provided under the terms of
agreement LES-LTM-21309)

 platform/linux-generic/odp_system_info.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/platform/linux-generic/odp_system_info.c b/platform/linux-generic/odp_system_info.c
index aab3f6f..fddd19a 100644
--- a/platform/linux-generic/odp_system_info.c
+++ b/platform/linux-generic/odp_system_info.c
@@ -51,7 +51,7 @@  static int sysconf_cpu_count(void)
 {
 	long ret;
 
-	ret = sysconf(_SC_NPROCESSORS_CONF);
+	ret = sysconf(_SC_NPROCESSORS_ONLN);
 	if (ret < 0)
 		return 0;