]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/rm-lld.git/blobdiff - src/rm_policy.c
Completed testing of CD local allocation feature
[keystone-rtos/rm-lld.git] / src / rm_policy.c
index cdd815ff75bfcc7bc38c42f0a195742e6a02bf65..cebbaca7348040aedfb5b92572f7c15d428e633b 100644 (file)
@@ -758,12 +758,12 @@ uint32_t rmPolicyGetResourceAlignment(void *policyDtb, int32_t resourceOffset)
     return(resourceAlignment);
 }
 
-/* FUNCTION PURPOSE: Returns resource allocation size according to the Policy
+/* FUNCTION PURPOSE: Returns resource CD allocation size according to the Policy
  ***********************************************************************
  * DESCRIPTION: Parses the policy DTB to find and return a resource's 
  *              allocation size.
  */
-uint32_t rmPolicyGetResourceAllocSize(void *policyDtb, int32_t resourceOffset)
+uint32_t rmPolicyGetResourceCdAllocSize(void *policyDtb, int32_t resourceOffset)
 {
     int32_t            propertyOffset;
     const char        *propertyName;
@@ -776,10 +776,10 @@ uint32_t rmPolicyGetResourceAllocSize(void *policyDtb, int32_t resourceOffset)
     if (propertyOffset > RM_DTB_UTIL_STARTING_NODE_OFFSET) {
         while (propertyOffset > RM_DTB_UTIL_STARTING_NODE_OFFSET) {
             propertyData = fdt_getprop_by_offset(policyDtb, propertyOffset, &propertyName, &propertyLen);
-            if (rmDtbUtilPolicyGetPropertyType(propertyName) == Rm_policyPropType_ALLOCATION_SIZE) {
-                allocSizeList = rmDtbUtilPolicyExtractAllocationSizes(propertyData, propertyLen);
+            if (rmDtbUtilPolicyGetPropertyType(propertyName) == Rm_policyPropType_CD_ALLOCATION_SIZE) {
+                allocSizeList = rmDtbUtilPolicyExtractCdAllocationSizes(propertyData, propertyLen);
                 resourceAllocSize = allocSizeList->value;                
-                rmDtbUtilPolicyFreeAllocationSizes(allocSizeList);
+                rmDtbUtilPolicyFreeCdAllocationSizes(allocSizeList);
             }
             propertyOffset = fdt_next_property_offset(policyDtb, propertyOffset);
         }