Here are the propsed modifcations for ODP 1.0 to coremask
and the linux helper routines.
v1 - Updated coremask library to use the CPU_xxx libraries
directly, renamed APIs to "cpumask" and updated the linux
helper routines to take CPU masks instead of a starting
CPU and count. Changed parameter ordering to be consistent
with other ODP APIs. Updated the examples/tests to use
the modified APIs.
Robbie King (2):
Convert linux thread/proc helpers to use core mask
Update tests/examples to use coremasks
example/generator/odp_generator.c | 48 +++---
example/ipsec/odp_ipsec.c | 30 ++--
example/l2fwd/odp_l2fwd.c | 43 +++--
example/packet/odp_pktio.c | 37 ++--
example/timer/odp_timer_test.c | 25 ++-
helper/include/odph_linux.h | 28 ++--
platform/linux-generic/Makefile.am | 4 +-
platform/linux-generic/include/api/odp.h | 2 +-
platform/linux-generic/include/api/odp_coremask.h | 186 ---------------------
platform/linux-generic/include/api/odp_cpumask.h | 167 ++++++++++++++++++
platform/linux-generic/include/api/odp_queue.h | 6 +-
platform/linux-generic/odp_coremask.c | 109 ------------
platform/linux-generic/odp_cpumask.c | 195 ++++++++++++++++++++++
platform/linux-generic/odp_linux.c | 107 +++++++++---
test/api_test/odp_common.c | 13 +-
test/performance/odp_scheduling.c | 30 ++--
test/validation/common/odp_cunit_common.c | 5 +-
17 files changed, 579 insertions(+), 456 deletions(-)
delete mode 100644 platform/linux-generic/include/api/odp_coremask.h
create mode 100644 platform/linux-generic/include/api/odp_cpumask.h
delete mode 100644 platform/linux-generic/odp_coremask.c
create mode 100644 platform/linux-generic/odp_cpumask.c
--
1.9.1
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp