@@ -140,23 +140,6 @@
extern void MEM_FlushCache(void *pMemBuf, u32 cBytes, s32 FlushType);
/*
- * ======== MEM_VFree ========
- * Purpose:
- * Free the given block of system memory in virtual space.
- * Parameters:
- * pMemBuf: Pointer to memory allocated by MEM_Calloc/Alloc()
- * using vmalloc.
- * Returns:
- * Requires:
- * MEM initialized.
- * pMemBuf is a valid memory address returned by MEM_Calloc/Alloc()
- * using vmalloc.
- * Ensures:
- * pMemBuf is no longer a valid pointer to memory.
- */
- extern void MEM_VFree(IN void *pMemBuf);
-
-/*
* ======== MEM_FreePhysMem ========
* Purpose:
* Free the given block of physically contiguous memory.
@@ -220,8 +220,7 @@ DSP_STATUS DMM_DeleteTables(struct DMM_OBJECT *hDmmMgr)
/* Delete all DMM tables */
SYNC_EnterCS(pDmmObj->hDmmLock);
- if (pVirtualMappingTable != NULL)
- MEM_VFree(pVirtualMappingTable);
+ vfree(pVirtualMappingTable);
SYNC_LeaveCS(pDmmObj->hDmmLock);
} else
@@ -292,23 +292,6 @@ void MEM_FlushCache(void *pMemBuf, u32 cBytes, s32 FlushType)
}
/*
- * ======== MEM_VFree ========
- * Purpose:
- * Free the given block of system memory in virtual space.
- */
-void MEM_VFree(IN void *pMemBuf)
-{
- DBC_Require(pMemBuf != NULL);
-
- GT_1trace(MEM_debugMask, GT_ENTER, "MEM_VFree: pMemBufs 0x%x\n",
- pMemBuf);
-
- if (pMemBuf) {
- vfree(pMemBuf);
- }
-}
-
-/*
* ======== MEM_FreePhysMem ========
* Purpose:
* Free the given block of physically contiguous memory.