These code changes represent the linux-generic implementation part of the previously submitted ODP API extension which adds two new cpumask pointers to the initialization data structure defined as a parameter to odp_init_global(). The changes submitted here do not by themselves represent an API change.
The code changes included here use the cpumasks referenced by these new pointers to ensure that the linux-generic reference platform implementation allocates CPU resources in such a way as to comply with any externally specified CPU resource availability. The modifications here ensure that linux-generic allocation behavior for control and worker CPU pools remains unchanged for existing applications... but adds 'hooks' to allow that allocation to comply with externally specified CPU resource availability by explicitly populating those new cpumasks and initializing pointers to them before calling odp_init_global(). These modifications allow linux-generic applications or instances to be compatible with any underlying CPU isolation support but do not rely on such support. This third revision of this patch set accommodates the use of pointers in the ODP initalization parameter data structure rather than the use of actual odp_cpumask_t structures embedded in that parameter block. It also addresses some issues regarding counts of available CPUs which were missed in the earlier revisions of these patches. Comments within the new code were amended to avoid any implied dependency on or requirement for underlying CPU isolation support. (All actual isolation support will be implemented in helper functions, and will be completely optional in nature.) Gary S. Robertson (1): linux-generic: add support for initial cpumasks platform/linux-generic/include/odp_internal.h | 2 ++ platform/linux-generic/odp_cpumask_task.c | 48 ++++++++++++++++++++++----- platform/linux-generic/odp_init.c | 19 +++++++++++ platform/linux-generic/odp_system_info.c | 13 +++----- 4 files changed, 65 insertions(+), 17 deletions(-) -- 1.9.1 _______________________________________________ lng-odp mailing list [email protected] https://lists.linaro.org/mailman/listinfo/lng-odp
