summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_pci.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2021-07-27 14:10:28 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2021-07-28 16:45:57 +0200
commit512ba03e35ccb2897d19d0207ef6bd55a9564fd1 (patch)
tree12f6329f268ff3b6bc67a356e38cbf15f9dc4163 /drivers/gpu/drm/i915/i915_pci.c
parent6d5de3275609c6022d6677808968b7adcdee5e66 (diff)
drm/i915: move i915_active 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_cache to just a slab_cache. 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-2-daniel.vetter@ffwll.ch
Diffstat (limited to 'drivers/gpu/drm/i915/i915_pci.c')
-rw-r--r--drivers/gpu/drm/i915/i915_pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c
index dbaa6d5006fb6..930dd93de7b03 100644
--- a/drivers/gpu/drm/i915/i915_pci.c
+++ b/drivers/gpu/drm/i915/i915_pci.c
@@ -30,6 +30,7 @@
#include "display/intel_fbdev.h"
+#include "i915_active.h"
#include "i915_drv.h"
#include "i915_perf.h"
#include "i915_globals.h"
@@ -1259,6 +1260,7 @@ static const struct {
void (*exit)(void);
} init_funcs[] = {
{ i915_check_nomodeset, NULL },
+ { i915_active_module_init, i915_active_module_exit },
{ i915_globals_init, i915_globals_exit },
{ i915_mock_selftests, NULL },
{ i915_pmu_init, i915_pmu_exit },