瀏覽代碼

mm-drivers: hw_fence: read qtimer for timestamps

Move timestamps to use qtimer instead of sleep timer.

Change-Id: I1a5f20c3d1ec31ba13e95713828024a309a53ba1
Signed-off-by: Ingrid Gallardo <[email protected]>
Ingrid Gallardo 2 年之前
父節點
當前提交
d62205ae1c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      hw_fence/src/hw_fence_drv_priv.c

+ 4 - 0
hw_fence/src/hw_fence_drv_priv.c

@@ -17,7 +17,11 @@
 
 inline u64 hw_fence_get_qtime(struct hw_fence_driver_data *drv_data)
 {
+#ifdef HWFENCE_USE_SLEEP_TIMER
 	return readl_relaxed(drv_data->qtime_io_mem);
+#else /* USE QTIMER */
+	return arch_timer_read_counter();
+#endif /* HWFENCE_USE_SLEEP_TIMER */
 }
 
 static int init_hw_fences_queues(struct hw_fence_driver_data *drv_data,