Signed-off-by: Ola Liljedahl <[email protected]>
---
On ARM big.LITTLE systems with cluster switching, return the actual number of
currently usable CPU's (e.g. 4, not 8). Trying to bind threads to cores 4..7
will just hang those threads.
platform/linux-generic/odp_system_info.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/platform/linux-generic/odp_system_info.c
b/platform/linux-generic/odp_system_info.c
index 10665bb..60804cb 100644
--- a/platform/linux-generic/odp_system_info.c
+++ b/platform/linux-generic/odp_system_info.c
@@ -51,7 +51,7 @@ static int sysconf_core_count(void)
{
long ret;
- ret = sysconf(_SC_NPROCESSORS_CONF);
+ ret = sysconf(_SC_NPROCESSORS_ONLN);
if (ret < 0)
return 0;
--
1.9.1
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp