From d047ca874d14b266e50a54112c59d76b8717cb61 Mon Sep 17 00:00:00 2001 From: Naseer Ahmed Date: Mon, 21 Nov 2011 14:24:36 -0800 Subject: [PATCH] Display: Use flush instead of clean for ashmem Change-Id: I9a4b8f4685620a8c650e03dd8c1a0203fa3b91e1 --- libgralloc/ashmemalloc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgralloc/ashmemalloc.cpp b/libgralloc/ashmemalloc.cpp index e60137b..49926f8 100644 --- a/libgralloc/ashmemalloc.cpp +++ b/libgralloc/ashmemalloc.cpp @@ -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;