Commit 4c61af8a authored by Harry Wentland's avatar Harry Wentland Committed by Alex Deucher

drm/amd/display: Implement dm_get_timestamp

We use this to ensure we wait at least 500ms in between eDP
disable/enable.
Signed-off-by: default avatarHarry Wentland <harry.wentland@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 01fe3e48
...@@ -37,8 +37,10 @@ ...@@ -37,8 +37,10 @@
unsigned long long dm_get_timestamp(struct dc_context *ctx) unsigned long long dm_get_timestamp(struct dc_context *ctx)
{ {
/* TODO: return actual timestamp */ struct timespec64 time;
return 0;
getrawmonotonic64(&time);
return timespec64_to_ns(&time);
} }
void dm_perf_trace_timestamp(const char *func_name, unsigned int line) void dm_perf_trace_timestamp(const char *func_name, unsigned int line)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment