OSDN Git Service

drm/i915: move gem_objects slab to direct module init/exit
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Jul 2021 12:10:32 +0000 (14:10 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 28 Jul 2021 14:45:58 +0000 (16:45 +0200)
commitc8ad09affd27590fee8dbf6b24419abf9d9bcf3d
tree047f5a667c34ae785f51e11aee425c0ee31cf149
parenta6270d1d4ceff6ac781d762c5290ce7335e3890b
drm/i915: move gem_objects slab to direct module init/exit

With the global kmem_cache shrink infrastructure gone there's nothing
special and we can convert them over.

I'm doing this split up into each patch because there's quite a bit of
noise with removing the static global.slab_objects to just a
slab_objects.

v2: Make slab static (Jason, 0day)

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210727121037.2041102-6-daniel.vetter@ffwll.ch
drivers/gpu/drm/i915/gem/i915_gem_object.c
drivers/gpu/drm/i915/gem/i915_gem_object.h
drivers/gpu/drm/i915/i915_globals.c
drivers/gpu/drm/i915/i915_globals.h
drivers/gpu/drm/i915/i915_pci.c