aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantosh Shukla <santosh.shukla@linaro.org>2014-08-18 14:42:22 +0530
committerSantosh Shukla <sshukla@mvista.com>2014-08-18 14:57:10 +0530
commit7d9992a4b659a225b9704dbbff8fab11395f109b (patch)
tree820aa05195c9f88552749326598ad4715f3d0710
parent725c488f7c2570996448192602aad441df3d337b (diff)
isolation:linux-dpdk: disable cpuset
However use of cpuset in linux-dpdk is redundant, I choose to disable them for isolation with no_hz_full approach. Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org>
-rw-r--r--platform/linux-dpdk/odp_linux.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/platform/linux-dpdk/odp_linux.c b/platform/linux-dpdk/odp_linux.c
index 067bd99..1f14c87 100644
--- a/platform/linux-dpdk/odp_linux.c
+++ b/platform/linux-dpdk/odp_linux.c
@@ -22,6 +22,11 @@
#include <rte_lcore.h>
+#define NO_HZ_FULL_ISOL /*
+ * don't use odp cpuset.
+ * enable this for odp isolation mode
+ */
+
typedef struct {
int thr_id;
void *(*start_routine) (void *);
@@ -45,12 +50,16 @@ void odp_linux_pthread_create(odp_linux_pthread_t *thread_tbl, int num,
int first_core, void *(*start_routine) (void *), void *arg)
{
int i;
+#ifndef NO_HZ_FULL_ISOL
cpu_set_t cpu_set;
+#endif
odp_start_args_t *start_args;
int core_count;
int cpu;
+#ifndef NO_HZ_FULL_ISOL
(void) cpu_set;
+#endif
(void) thread_tbl;
core_count = odp_sys_core_count();