diff options
author | Tvrtko Ursulin <[email protected]> | 2024-10-16 13:20:09 +0100 |
---|---|---|
committer | Philipp Stanner <[email protected]> | 2024-10-17 12:15:11 +0200 |
commit | d42a254633c773921884a19e8a1a0f53a31150c3 (patch) | |
tree | 2c6bd912108333219ab30e0e3a07da701386e9fc /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | fd3b2c5f40a1e028bc813284260d430257444334 (diff) |
drm/sched: Optimise drm_sched_entity_push_job
In FIFO mode (which is the default), both drm_sched_entity_push_job() and
drm_sched_rq_update_fifo(), where the latter calls the former, are
currently taking and releasing the same entity->rq_lock.
We can avoid that design inelegance, and also have a miniscule
efficiency improvement on the submit from idle path, by introducing a new
drm_sched_rq_update_fifo_locked() helper and pulling up the lock taking to
its callers.
v2:
* Remove drm_sched_rq_update_fifo() altogether. (Christian)
v3:
* Improved commit message. (Philipp)
Signed-off-by: Tvrtko Ursulin <[email protected]>
Cc: Christian König <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: Luben Tuikov <[email protected]>
Cc: Matthew Brost <[email protected]>
Cc: Philipp Stanner <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Philipp Stanner <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions