aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-keystone2/include/odp_internal.h
diff options
context:
space:
mode:
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>2016-01-22 22:10:58 +0200
committerIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>2016-02-12 18:55:22 +0200
commitcf413a881e53b5ab95a5a1c8bcfd443ac5e71929 (patch)
tree6ca831ebd1dd65bbbfa9ada71b390f3f78b5c5ec /platform/linux-keystone2/include/odp_internal.h
parentaaad6de5baa2c2da322a22de783635aa798b06c0 (diff)
linux-generic: cpumask_task: use cpumask got at init
It's not correct to read affinity each time to get worker cpumask. The affinity for main thread can be changed, but cpunum is still for old cpumask. So, better to remember at init cpumask for available cpus and then use it, thus, if main thread changed it`s affinity, the available CPUs are still the same. Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Diffstat (limited to 'platform/linux-keystone2/include/odp_internal.h')
-rw-r--r--platform/linux-keystone2/include/odp_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/linux-keystone2/include/odp_internal.h b/platform/linux-keystone2/include/odp_internal.h
index 54c2585f..897366dd 100644
--- a/platform/linux-keystone2/include/odp_internal.h
+++ b/platform/linux-keystone2/include/odp_internal.h
@@ -20,6 +20,7 @@ extern "C" {
#endif
#include <odp/thread.h>
+#include <sched.h>
extern __thread int __odp_errno;
@@ -44,6 +45,7 @@ int _odp_term_global(enum init_stage stage);
int odp_system_info_init(void);
int odp_system_info_term(void);
+cpu_set_t _odp_cpuset(void);
int odp_thread_init_global(void);
int odp_thread_init_local(odp_thread_type_t type);