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: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Harry Wentland 2018-03-23 13:39:27 -04:00 committed by Alex Deucher
parent 01fe3e4876
commit 4c61af8afe

View File

@ -37,8 +37,10 @@
unsigned long long dm_get_timestamp(struct dc_context *ctx)
{
/* TODO: return actual timestamp */
return 0;
struct timespec64 time;
getrawmonotonic64(&time);
return timespec64_to_ns(&time);
}
void dm_perf_trace_timestamp(const char *func_name, unsigned int line)