From: Daniel Vetter Date: Mon, 19 Feb 2018 14:57:08 +0000 (+0100) Subject: drm/todo: Add idr_init_base todo X-Git-Tag: v5.15~8118^2~45^2~455 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1aecabb5b2d1dc1a821cdecda607eb70a8dd5124;p=platform%2Fkernel%2Flinux-starfive.git drm/todo: Add idr_init_base todo Suggested-by: Chris Wilson Cc: Chris Wilson Acked-by: Chris Wilson Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20180219145708.23523-1-daniel.vetter@ffwll.ch --- diff --git a/Documentation/gpu/todo.rst b/Documentation/gpu/todo.rst index 1e59337..1a0a413 100644 --- a/Documentation/gpu/todo.rst +++ b/Documentation/gpu/todo.rst @@ -212,6 +212,16 @@ probably use drm_fb_helper_fbdev_teardown(). Contact: Maintainer of the driver you plan to convert +idr_init_base() +--------------- + +DRM core&drivers uses a lot of idr (integer lookup directories) for mapping +userspace IDs to internal objects, and in most places ID=0 means NULL and hence +is never used. Switching to idr_init_base() for these would make the idr more +efficient. + +Contact: Daniel Vetter + Core refactorings =================