]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/xe: Add xe_gt_clock_interval_to_ms helper
authorMatthew Brost <matthew.brost@intel.com>
Tue, 11 Jun 2024 14:40:47 +0000 (07:40 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 13 Jun 2024 02:10:22 +0000 (19:10 -0700)
commit49cc215aad7f5b953d4fc85c75b044f0abdc10cd
tree0befe7013999699723a89b5485f46bd0131a31d7
parent1bf1ca4e326c7d0bdf4aa1946d4ba0ccdae8d09e
drm/xe: Add xe_gt_clock_interval_to_ms helper

Add helper to convert GT clock ticks to msec. Useful for determining if
timeouts occur by examing GT clock ticks.

v6:
- s/nom/n , s/dom/d (Jonathan)
- include math64 (CI)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240611144053.2805091-6-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_gt_clock.c
drivers/gpu/drm/xe/xe_gt_clock.h