diff options
| author | Deepak R Varma <mh12gx2825@gmail.com> | 2020-11-04 20:33:39 +0530 |
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-11-28 22:43:10 +0000 |
| commit | 8d989f4448947c866b47cb6789b88b31d5f79fe3 (patch) | |
| tree | 40dcc413743bb038f58780b05fb5b335948ff1aa /tools/perf/scripts/python/bin | |
| parent | drm/i915/gt: Retain default context state across shrinking (diff) | |
| download | linux-8d989f4448947c866b47cb6789b88b31d5f79fe3.tar.gz linux-8d989f4448947c866b47cb6789b88b31d5f79fe3.zip | |
drm/i915/perf: replace idr_init() by idr_init_base()
idr_init() uses base 0 which is an invalid identifier. The new function
idr_init_base allows IDR to set the ID lookup from base 1. This avoids
all lookups that otherwise starts from 0 since 0 is always unused.
References: commit 6ce711f27500 ("idr: Make 1-based IDRs more efficient")
Signed-off-by: Deepak R Varma <mh12gx2825@gmail.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20201104150339.GA68663@localhost
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
