[Intel-gfx] [PATCH] drm/i915/buddy: add missing call to i915_global_register
Mika Kuoppala
mika.kuoppala at linux.intel.com
Thu Sep 5 14:22:27 UTC 2019
Matthew Auld <matthew.auld at intel.com> writes:
> 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 at intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala at linux.intel.com>
> ---
> drivers/gpu/drm/i915/i915_buddy.c | 1 +
> 1 file changed, 1 insertion(+)
>
> 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;
> }
>
> --
> 2.20.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
More information about the Intel-gfx
mailing list