]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Remove unused get_clock_requirements_for_state
authorDr. David Alan Gilbert <linux@treblig.org>
Sun, 2 Feb 2025 21:58:53 +0000 (21:58 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:03:02 +0000 (21:03 -0500)
get_clock_requirements_for_state() was added in 2018 by
commit 8ab2180f96f5 ("drm/amd/display: Add function to fetch clock
requirements")
but never used.

Remove it.

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.c
drivers/gpu/drm/amd/display/dc/dc.h

index e204b69fbc182e83915f72107033a78120119406..c5f1b61ed640506c8b18d48c599d3d67daac6a90 100644 (file)
@@ -5449,18 +5449,6 @@ bool dc_is_dmcu_initialized(struct dc *dc)
        return false;
 }
 
-void get_clock_requirements_for_state(struct dc_state *state, struct AsicStateEx *info)
-{
-       info->displayClock                              = (unsigned int)state->bw_ctx.bw.dcn.clk.dispclk_khz;
-       info->engineClock                               = (unsigned int)state->bw_ctx.bw.dcn.clk.dcfclk_khz;
-       info->memoryClock                               = (unsigned int)state->bw_ctx.bw.dcn.clk.dramclk_khz;
-       info->maxSupportedDppClock              = (unsigned int)state->bw_ctx.bw.dcn.clk.max_supported_dppclk_khz;
-       info->dppClock                                  = (unsigned int)state->bw_ctx.bw.dcn.clk.dppclk_khz;
-       info->socClock                                  = (unsigned int)state->bw_ctx.bw.dcn.clk.socclk_khz;
-       info->dcfClockDeepSleep                 = (unsigned int)state->bw_ctx.bw.dcn.clk.dcfclk_deep_sleep_khz;
-       info->fClock                                    = (unsigned int)state->bw_ctx.bw.dcn.clk.fclk_khz;
-       info->phyClock                                  = (unsigned int)state->bw_ctx.bw.dcn.clk.phyclk_khz;
-}
 enum dc_status dc_set_clock(struct dc *dc, enum dc_clock_type clock_type, uint32_t clk_khz, uint32_t stepping)
 {
        if (dc->hwss.set_clock)
index e5e4cb3d0a0d6f26dab1357f31cb6e9adc5ce0a0..42ba65e785ca18f54e75a0b13519149708f4dfa1 100644 (file)
@@ -1582,8 +1582,6 @@ bool dc_validate_boot_timing(const struct dc *dc,
 
 enum dc_status dc_validate_plane(struct dc *dc, const struct dc_plane_state *plane_state);
 
-void get_clock_requirements_for_state(struct dc_state *state, struct AsicStateEx *info);
-
 enum dc_status dc_validate_with_context(struct dc *dc,
                                        const struct dc_validation_set set[],
                                        int set_count,