0001
0002
0003
0004
0005
0006 #ifndef __INTEL_GT_CLOCK_UTILS_H__
0007 #define __INTEL_GT_CLOCK_UTILS_H__
0008
0009 #include <linux/types.h>
0010
0011 struct intel_gt;
0012
0013 void intel_gt_init_clock_frequency(struct intel_gt *gt);
0014
0015 #if IS_ENABLED(CONFIG_DRM_I915_DEBUG_GEM)
0016 void intel_gt_check_clock_frequency(const struct intel_gt *gt);
0017 #else
0018 static inline void intel_gt_check_clock_frequency(const struct intel_gt *gt) {}
0019 #endif
0020
0021 u64 intel_gt_clock_interval_to_ns(const struct intel_gt *gt, u64 count);
0022 u64 intel_gt_pm_interval_to_ns(const struct intel_gt *gt, u64 count);
0023
0024 u64 intel_gt_ns_to_clock_interval(const struct intel_gt *gt, u64 ns);
0025 u64 intel_gt_ns_to_pm_interval(const struct intel_gt *gt, u64 ns);
0026
0027 #endif