diff options
| author | Maíra Canal <mcanal@igalia.com> | 2026-09-15 16:42:18 -0300 |
|---|---|---|
| committer | Maíra Canal <mcanal@igalia.com> | 2026-09-30 19:41:08 -0300 |
| commit | 5ce81ba29a4cfbce8be5cc2999292f2fc3962031 (patch) | |
| tree | ed11a2eecac7067a1852c4750ac5942d58b971f5 /tools/perf/scripts/python | |
| parent | 421cf7ccfc61cb990f38d671ddfe3a901519e21d (diff) | |
| download | linux-5ce81ba29a4cfbce8be5cc2999292f2fc3962031.tar.gz linux-5ce81ba29a4cfbce8be5cc2999292f2fc3962031.zip | |
drm/amdgpu: Use drm_timeout_abs_to_jiffies()
amdgpu_gem_timeout() converts an absolute deadline in ns into jiffies,
which is what drm_timeout_abs_to_jiffies() already does for the other
drivers whose wait UAPI takes a deadline. Use the shared helper and keep
only the part that is specific to amdgpu, which was improved with a
clearer comment.
Two details change along this conversion: the helper rounds up rather than
truncating, so a deadline less than a tick away now waits for one jiffy
instead of returning 0. It also uses nsecs_to_jiffies64(), so the
conversion no longer truncates on 32-bit, where a large deadline could
previously be reduced to an arbitrary shorter one.
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patch.msgid.link/20260915-drm-timeout-helpers-v3-3-f2ae987d861f@igalia.com
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
