From 7d9992a4b659a225b9704dbbff8fab11395f109b Mon Sep 17 00:00:00 2001 From: Santosh Shukla Date: Mon, 18 Aug 2014 14:42:22 +0530 Subject: 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 --- platform/linux-dpdk/odp_linux.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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 +#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(); -- cgit v1.2.3