ktime_t intel_gt_get_awake_time(const struct intel_gt *gt)
{
- STUB();
- return 0;
-#ifdef notyet
unsigned int seq;
ktime_t total;
+#ifdef notyet
do {
seq = read_seqcount_begin(>->stats.lock);
total = __intel_gt_get_awake_time(gt);
} while (read_seqcount_retry(>->stats.lock, seq));
+#else
+ do {
+ seq = read_seqcount_begin((seqcount_t *)>->stats.lock);
+ total = __intel_gt_get_awake_time(gt);
+ } while (read_seqcount_retry((seqcount_t *)>->stats.lock, seq));
+#endif
return total;
-#endif
}
#if IS_ENABLED(CONFIG_DRM_I915_SELFTEST)