]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Remove unused dc_stream_warmup_writeback
authorDr. David Alan Gilbert <linux@treblig.org>
Mon, 4 Nov 2024 02:38:50 +0000 (02:38 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Dec 2024 15:38:33 +0000 (10:38 -0500)
dc_stream_warmup_writeback() is unused since it was added in 2019 by
commit 6a652f6d127d ("drm/amd/display: Add warmup escape call support")

Remove it.

Note there is a dcn30 version that's called directly which is kept.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
drivers/gpu/drm/amd/display/dc/dc_stream.h

index 55dc482d9b3660d8274e37b78f5144562bc134d7..701b7e4f29204ca4d68dc1af5d3278adb61ebbee 100644 (file)
@@ -605,17 +605,6 @@ bool dc_stream_remove_writeback(struct dc *dc,
        return true;
 }
 
-bool dc_stream_warmup_writeback(struct dc *dc,
-               int num_dwb,
-               struct dc_writeback_info *wb_info)
-{
-       dc_exit_ips_for_hw_access(dc);
-
-       if (dc->hwss.mmhubbub_warmup)
-               return dc->hwss.mmhubbub_warmup(dc, num_dwb, wb_info);
-       else
-               return false;
-}
 uint32_t dc_stream_get_vblank_counter(const struct dc_stream_state *stream)
 {
        uint8_t i;
index c46fe603c665b80c61dc7b936f29d15787fdc5fd..713884103aeac973dddcd13b2e102337069e3964 100644 (file)
@@ -447,10 +447,6 @@ enum dc_status dc_stream_add_dsc_to_resource(struct dc *dc,
                struct dc_state *state,
                struct dc_stream_state *stream);
 
-bool dc_stream_warmup_writeback(struct dc *dc,
-               int num_dwb,
-               struct dc_writeback_info *wb_info);
-
 bool dc_stream_dmdata_status_done(struct dc *dc, struct dc_stream_state *stream);
 
 bool dc_stream_set_dynamic_metadata(struct dc *dc,