summaryrefslogtreecommitdiff
path: root/nouveau/nouveau_private.h
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-10-31 02:22:29 +0200
committerFrancisco Jerez <currojerez@riseup.net>2010-10-31 02:09:59 +0100
commitd0a4f2e292e5b347f7e5ee2cdbe4f077986eb9da (patch)
treeb8da3cc292c2293d1fdab0b3c14de0f4b9f82232 /nouveau/nouveau_private.h
parent362457715faacd3101929e5f0d8ae250d0ad09df (diff)
nouveau: Avoid unnecessary call to CPU_FINI.
nouveau_bo_unmap called the CPU_FINI IOCTL even if it was a NOSYNC mapping. It caused no harmful effects (actually CPU_FINI is a no-op on recent enough kernels) besides the precious CPU cycles being wasted. Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Diffstat (limited to 'nouveau/nouveau_private.h')
-rw-r--r--nouveau/nouveau_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/nouveau/nouveau_private.h b/nouveau/nouveau_private.h
index 4c535345..124fe870 100644
--- a/nouveau/nouveau_private.h
+++ b/nouveau/nouveau_private.h
@@ -115,6 +115,7 @@ struct nouveau_bo_priv {
uint32_t global_handle;
drm_handle_t handle;
uint64_t map_handle;
+ int map_refcnt;
void *map;
/* Last known information from kernel on buffer status */