aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorjp abgrall <jpa@google.com>2012-06-18 13:23:14 -0700
committerAndroid Partner Code Review <android-gerrit-partner@google.com>2012-06-18 13:23:14 -0700
commitf35eb02b4d51503cbcfdc826144bd6040d453ce7 (patch)
tree318b4f3b985e03612d0540460b9f9acf405f365b /drivers/gpu
parentce3815df4836c1f8e10f7a71213b4d2d7615c496 (diff)
downloadkernel_samsung_crespo-f35eb02b4d51503cbcfdc826144bd6040d453ce7.zip
kernel_samsung_crespo-f35eb02b4d51503cbcfdc826144bd6040d453ce7.tar.gz
kernel_samsung_crespo-f35eb02b4d51503cbcfdc826144bd6040d453ce7.tar.bz2
Revert "gpu: pvr: Intentionally leak SGX MMU PTs."
Not needed anymore, was just to get a prebuild that QA could use. This reverts commit ce3815df4836c1f8e10f7a71213b4d2d7615c496
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/pvr/sgx/mmu.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpu/pvr/sgx/mmu.c b/drivers/gpu/pvr/sgx/mmu.c
index 0847312..825ed84 100644
--- a/drivers/gpu/pvr/sgx/mmu.c
+++ b/drivers/gpu/pvr/sgx/mmu.c
@@ -698,17 +698,14 @@ _FreePageTableMemory (MMU_HEAP *pMMUHeap, MMU_PT_INFO *psPTInfoList)
if(pMMUHeap->psDevArena->psDeviceMemoryHeapInfo->psLocalDevMemArena == IMG_NULL)
{
+
MakeKernelPageReadWrite(psPTInfoList->PTPageCpuVAddr);
-#if 0
+
OSFreePages(PVRSRV_HAP_WRITECOMBINE | PVRSRV_HAP_KERNEL_ONLY,
pMMUHeap->ui32PTSize,
psPTInfoList->PTPageCpuVAddr,
psPTInfoList->hPTPageOSMemHandle);
-#else
- OSMemSet(psPTInfoList->PTPageCpuVAddr, 0, pMMUHeap->ui32PTSize);
- MakeKernelPageReadOnly(psPTInfoList->PTPageCpuVAddr);
-#endif
}
else
{