Files
linux/drivers/gpu/drm
Danilo Krummrich b765bc9968 drm/via: use idr_init_base() to initialize dev_priv->object_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/20220701190227.284783-2-dakr@redhat.com
2022-07-28 16:36:49 +02:00
..
2022-07-27 09:17:58 +02:00
2022-07-13 10:33:00 +02:00
2022-06-20 23:53:55 +03:00
2022-06-28 07:56:32 +02:00
2022-05-04 14:09:34 +02:00
2022-07-21 12:16:10 +02:00