Display: Use flush instead of clean for ashmem

Change-Id: I9a4b8f4685620a8c650e03dd8c1a0203fa3b91e1
This commit is contained in:
Naseer Ahmed 2011-11-21 14:24:36 -08:00
parent 7f94fa6694
commit d047ca874d

View File

@ -131,8 +131,8 @@ int AshmemAlloc::clean_buffer(void *base, size_t size, int offset, int fd)
// LOGD("%s: Clean buffer fd=%d base = %p size=%d PID=%d", __FUNCTION__,
// fd, base, size, getpid());
int err = 0;
if (ioctl(fd, ASHMEM_CACHE_INV_RANGE, NULL)) {
LOGE("ASHMEM_CACHE_INV_RANGE failed fd = %d", fd);
if (ioctl(fd, ASHMEM_CACHE_FLUSH_RANGE, NULL)) {
LOGE("ASHMEM_CACHE_FLUSH_RANGE failed fd = %d", fd);
}
return err;