diff options
Diffstat (limited to 'drivers/gpu/pvr/mm.c')
-rw-r--r-- | drivers/gpu/pvr/mm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/pvr/mm.c b/drivers/gpu/pvr/mm.c index ecad206..80f0efe 100644 --- a/drivers/gpu/pvr/mm.c +++ b/drivers/gpu/pvr/mm.c @@ -983,7 +983,11 @@ NewVMallocLinuxMemArea(IMG_UINT32 ui32Bytes, IMG_UINT32 ui32AreaFlags) if (AreaIsUncached(ui32AreaFlags) && !bFromPagePool) { +#if !defined(PVRSRV_AVOID_RANGED_INVALIDATE) OSInvalidateCPUCacheRangeKM(psLinuxMemArea, pvCpuVAddr, ui32Bytes); +#else + OSFlushCPUCacheKM(); +#endif } return psLinuxMemArea; |