drm/xe: Add GT stats ktime helpers

Normalize GT stats that record execution periods in code paths by
adding helpers to perform the ktime calculation. Use these helpers in
the SVM code.

Suggested-by: Francois Dugast <francois.dugast@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patch.msgid.link/20251212182847.1683222-7-matthew.brost@intel.com
This commit is contained in:
Matthew Brost 2025-12-12 10:28:46 -08:00
commit ce3d65549c
2 changed files with 41 additions and 20 deletions