mirror_ubuntu-kernels/drivers/gpu
Danilo Krummrich 3a6acb7dd6
drm: use idr_init_base() to initialize master->lessee_idr
idr_init_base(), implemented by commit 6ce711f275 ("idr: Make 1-based
IDRs more efficient"), let us set an arbitrary base other than
idr_init(), which uses base 0.

Since, for this IDR, no ID < 1 is ever requested/allocated, using
idr_init_base(&idr, 1) avoids unnecessary tree walks.

Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220701185303.284082-5-dakr@redhat.com
2022-07-28 15:35:55 +01:00
..
drm drm: use idr_init_base() to initialize master->lessee_idr 2022-07-28 15:35:55 +01:00
host1x gpu: host1x: Use the bitmap API to allocate bitmaps 2022-07-08 17:38:34 +02:00
ipu-v3 drm/imx: various cleanups 2022-05-06 15:07:39 +10:00
trace
vga PCI/VGA: Move vgaarb to drivers/pci 2022-03-09 18:30:46 -06:00
Makefile gpu: host1x: Add context bus 2022-06-01 11:50:42 +02:00