]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/rm-lld.git/commitdiff
When resource base is not specified the allocation will come from an DEV.RM_LLD.02.00.00.02
authorJustin Sobota <jsobota@ti.com>
Mon, 25 Mar 2013 22:59:41 +0000 (18:59 -0400)
committerJustin Sobota <jsobota@ti.com>
Mon, 25 Mar 2013 22:59:41 +0000 (18:59 -0400)
unallocated resource node as opposed to a resource node not owned by the
requesting instance

src/rm_allocator.c

index bc5d16b198ed335bc206e3c59ef4b089cf56cefb..eb78fb40cc75172464fecf4c48a03d843ade9800 100644 (file)
@@ -431,8 +431,8 @@ static int32_t allocatorPreAllocate(Rm_Handle rmHandle, Rm_Allocator *allocator,
         matchingNode = RB_FIND(_Rm_AllocatorResourceTree, allocator->allocatorRootEntry, &findNode);
         
         if (matchingNode) {
-            if (!allocatorResNodeIsOwnedBy(rmHandle, matchingNode, opInfo->serviceSrcInstNode)) {
-                /* Attempt to preallocate from node only if not owned by instance requesting the allocation */
+            if (matchingNode->allocationCount == 0) {
+                /* Attempt to preallocate from node only if not owned by anyone */
                 nodePassesPolicy = RM_FALSE;
                 policyCheckCfg.type = policyCheckType;
                 policyCheckCfg.validInstNode = opInfo->serviceSrcInstNode;