summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_mm.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2011-02-18 17:59:11 +0100
committerDave Airlie <airlied@redhat.com>2011-02-23 10:18:20 +1000
commit31a5b8ce8f3bf20799eb68da9602de2bee58fdd3 (patch)
tree59e1c0b9cf8b63ebcb6ca9607c6cc6610ad8c388 /include/drm/drm_mm.h
parenta250b9fdc53a286d32e22f21170382a46b3a3ef5 (diff)
downloadtalos-obmc-linux-31a5b8ce8f3bf20799eb68da9602de2bee58fdd3.tar.gz
talos-obmc-linux-31a5b8ce8f3bf20799eb68da9602de2bee58fdd3.zip
drm/nouveau: don't munge in drm_mm internals
Nouveau was checking drm_mm internals on teardown to see whether the memory manager was initialized. Hide these internals in a small inline helper function. Acked-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_mm.h')
-rw-r--r--include/drm/drm_mm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/drm/drm_mm.h b/include/drm/drm_mm.h
index e39177778601..0d791462f7b2 100644
--- a/include/drm/drm_mm.h
+++ b/include/drm/drm_mm.h
@@ -72,6 +72,11 @@ struct drm_mm {
unsigned long scan_end;
};
+static inline bool drm_mm_initialized(struct drm_mm *mm)
+{
+ return mm->free_stack.next;
+}
+
/*
* Basic range manager support (drm_mm.c)
*/
OpenPOWER on IntegriCloud