Skip to content

Commit 1aecabb

Browse files
committed
drm/todo: Add idr_init_base todo
Suggested-by: Chris Wilson <[email protected]> Cc: Chris Wilson <[email protected]> Acked-by: Chris Wilson <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent e86584c commit 1aecabb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Documentation/gpu/todo.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,16 @@ probably use drm_fb_helper_fbdev_teardown().
212212

213213
Contact: Maintainer of the driver you plan to convert
214214

215+
idr_init_base()
216+
---------------
217+
218+
DRM core&drivers uses a lot of idr (integer lookup directories) for mapping
219+
userspace IDs to internal objects, and in most places ID=0 means NULL and hence
220+
is never used. Switching to idr_init_base() for these would make the idr more
221+
efficient.
222+
223+
Contact: Daniel Vetter
224+
215225
Core refactorings
216226
=================
217227

0 commit comments

Comments
 (0)