drm/xe: Get GT clock to nanosecs
authorAravind Iddamsetty <aravind.iddamsetty@linux.intel.com>
Wed, 30 Aug 2023 03:16:50 +0000 (08:46 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:41:13 +0000 (11:41 -0500)
commit8d07691c35bfd08fe16f865b9df04204604b36d5
tree4705be89a44f1640282f058fb35ddb25ebbdb70c
parent430003b85ce36e6f9dd6799b6cd5690f9b6c8a2a
drm/xe: Get GT clock to nanosecs

Helper to convert GT clock cycles to nanoseconds.

v2: Use DIV_ROUND_CLOSEST_ULL helper(Ashutosh)
v3: rename xe_gt_clock_interval_to_ns to xe_gt_clock_cycles_to_ns

Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Aravind Iddamsetty <aravind.iddamsetty@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_gt_clock.c
drivers/gpu/drm/xe/xe_gt_clock.h