summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_active.h
diff options
context:
space:
mode:
authorChris Wilson2019-02-05 14:00:04 +0100
committerChris Wilson2019-02-05 18:17:34 +0100
commit5f5c139d6900b3338963bddcd8a567dcad33cf92 (patch)
tree5251e6fe8868ad6828904b9b2767b5acfb78f416 /drivers/gpu/drm/i915/i915_active.h
parentdrm/i915: Release the active tracker tree upon idling (diff)
downloadkernel-qcow2-linux-5f5c139d6900b3338963bddcd8a567dcad33cf92.tar.gz
kernel-qcow2-linux-5f5c139d6900b3338963bddcd8a567dcad33cf92.tar.xz
kernel-qcow2-linux-5f5c139d6900b3338963bddcd8a567dcad33cf92.zip
drm/i915: Allocate active tracking nodes from a slabcache
Wrap the active tracking for a GPU references in a slabcache for faster allocations, and hopefully better fragmentation reduction. v3: Nothing device specific left, it's just a slabcache that we can make global. v4: Include i915_active.h and don't put the initfunc under DEBUG_GEM Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190205130005.2807-4-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_active.h')
-rw-r--r--drivers/gpu/drm/i915/i915_active.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_active.h b/drivers/gpu/drm/i915/i915_active.h
index ec4b66efd9a7..179b47aeec33 100644
--- a/drivers/gpu/drm/i915/i915_active.h
+++ b/drivers/gpu/drm/i915/i915_active.h
@@ -70,4 +70,7 @@ void i915_active_fini(struct i915_active *ref);
static inline void i915_active_fini(struct i915_active *ref) { }
#endif
+int i915_global_active_init(void);
+void i915_global_active_exit(void);
+
#endif /* _I915_ACTIVE_H_ */