Queue synchronization needs are different for plain and scheduled queues. Implement separate enq/deq operations for plain and scheduled queues. Once separated these implementations can be further optimized. Separation is done by setting different function pointer to queue entry. Also internal interface needs to use these the same functions, so those were inlined. In this phase, plain queue enqueue performance increased a bit due to simplified function. Scheduled queue implementation was not changed.
----------------github------------------------ /** Email created from pull request 675 (psavol:master-queue-inline) ** https://github.com/Linaro/odp/pull/675 ** Patch: https://github.com/Linaro/odp/pull/675.patch ** Base sha: dc28824415ea510e3ef62e47f7640bf4a8420fde ** Merge commit sha: a68fc608f4c460289d09e09e68f3646d1846737a **/ ----------------/github------------------------ ----------------checkpatch.pl------------------------ total: 0 errors, 0 warnings, 0 checks, 614 lines checked to_send-p-000.patch has no obvious style problems and is ready for submission. WARNING: externs should be avoided in .c files #182: FILE: platform/linux-generic/odp_queue_if.c:26: +extern const _odp_queue_api_fn_t queue_scalable_api; WARNING: externs should be avoided in .c files #186: FILE: platform/linux-generic/odp_queue_if.c:29: +extern const _odp_queue_api_fn_t queue_basic_api; total: 0 errors, 2 warnings, 0 checks, 259 lines checked to_send-p-001.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. total: 0 errors, 0 warnings, 0 checks, 1053 lines checked to_send-p-002.patch has no obvious style problems and is ready for submission. total: 0 errors, 0 warnings, 0 checks, 382 lines checked to_send-p-003.patch has no obvious style problems and is ready for submission. total: 0 errors, 0 warnings, 0 checks, 374 lines checked to_send-p-004.patch has no obvious style problems and is ready for submission. total: 0 errors, 0 warnings, 0 checks, 174 lines checked to_send-p-005.patch has no obvious style problems and is ready for submission. ----------------/checkpatch.pl------------------------