summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8e30e8b)
raw | patch | inline | side by side (parent: 8e30e8b)
author | Justin Sobota <jsobota@ti.com> | |
Mon, 25 Mar 2013 22:59:41 +0000 (18:59 -0400) | ||
committer | Justin 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
requesting instance
src/rm_allocator.c | patch | blob | history |
diff --git a/src/rm_allocator.c b/src/rm_allocator.c
index bc5d16b198ed335bc206e3c59ef4b089cf56cefb..eb78fb40cc75172464fecf4c48a03d843ade9800 100644 (file)
--- a/src/rm_allocator.c
+++ b/src/rm_allocator.c
@@ -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;