From 1810f441ae112b0d44fe52ab4147eb768084e978 Mon Sep 17 00:00:00 2001 From: Jaehyun Chung Date: Tue, 28 Apr 2020 12:41:54 -0400 Subject: drm/amd/display: Handle persistence in DM [Why] Remove dm_write_persistent_data and dm_read_persistent_data as persistence should be handled in DM. [How] Remove functions. Move read/write calls into DM layer while maintaining logic. Signed-off-by: Jaehyun Chung Reviewed-by: Anthony Koo Acked-by: Rodrigo Siqueira Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/modules/inc/mod_stats.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/drm/amd/display/modules') diff --git a/drivers/gpu/drm/amd/display/modules/inc/mod_stats.h b/drivers/gpu/drm/amd/display/modules/inc/mod_stats.h index 3812094b52e8..4220fd8fdd60 100644 --- a/drivers/gpu/drm/amd/display/modules/inc/mod_stats.h +++ b/drivers/gpu/drm/amd/display/modules/inc/mod_stats.h @@ -36,7 +36,13 @@ struct mod_stats_caps { bool dummy; }; -struct mod_stats *mod_stats_create(struct dc *dc); +struct mod_stats_init_params { + unsigned int stats_enable; + unsigned int stats_entries; +}; + +struct mod_stats *mod_stats_create(struct dc *dc, + struct mod_stats_init_params *init_params); void mod_stats_destroy(struct mod_stats *mod_stats); -- cgit v1.2.3