drm/xe: Remove dead clock code
authorLucas De Marchi <lucas.demarchi@intel.com>
Mon, 8 Apr 2024 15:13:12 +0000 (08:13 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 8 Apr 2024 19:03:19 +0000 (12:03 -0700)
xe_gt_clock_cycles_to_ns() is not called from anywhere after PMU
handling was removed in commit 90a8b23f9b85 ("drm/xe/pmu: Remove PMU
from Xe till uapi is finalized"). Drop it.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240408151312.2100304-1-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_gt_clock.c
drivers/gpu/drm/xe/xe_gt_clock.h

index 937054e31d72fe7900cd92e2c8c555a0bc8e5ac6..c7bca20f6b651581415ec3d1ae9365fe77f46b36 100644 (file)
@@ -78,8 +78,3 @@ int xe_gt_clock_init(struct xe_gt *gt)
        gt->info.reference_clock = freq;
        return 0;
 }
-
-u64 xe_gt_clock_cycles_to_ns(const struct xe_gt *gt, u64 count)
-{
-       return DIV_ROUND_CLOSEST_ULL(count * NSEC_PER_SEC, gt->info.reference_clock);
-}
index aa162722f85964767e0880ff4006e9424e2df362..44fa0371b97394370edb8fd266c3a57c473ee92c 100644 (file)
@@ -11,5 +11,5 @@
 struct xe_gt;
 
 int xe_gt_clock_init(struct xe_gt *gt);
-u64 xe_gt_clock_cycles_to_ns(const struct xe_gt *gt, u64 count);
+
 #endif