diff options
author | Matthew Auld <matthew.auld@intel.com> | 2019-09-05 10:29:21 +0300 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-09-09 12:58:20 +0300 |
commit | 5d7f965e5675ae0cbec5fe56af79da9039f723ed (patch) | |
tree | 91240eb7012b11f842443d104cc04a50943611a3 | |
parent | 42014f69bb235f1123a6f8befb58b3e350a6f180 (diff) | |
download | linux-5d7f965e5675ae0cbec5fe56af79da9039f723ed.tar.xz |
drm/i915/buddy: add missing call to i915_global_register
We are meant to register the kmem cache at init, such the supplied exit
and shrink hooks can be called.
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190905072921.7979-1-matthew.auld@intel.com
-rw-r--r-- | drivers/gpu/drm/i915/i915_buddy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_buddy.c b/drivers/gpu/drm/i915/i915_buddy.c index fe1871d7c126..e9d4200ce3bc 100644 --- a/drivers/gpu/drm/i915/i915_buddy.c +++ b/drivers/gpu/drm/i915/i915_buddy.c @@ -38,6 +38,7 @@ int __init i915_global_buddy_init(void) if (!global.slab_blocks) return -ENOMEM; + i915_global_register(&global.base); return 0; } |