mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 09:12:39 -04:00
drm/amd/display: Remove unused get_clock_requirements_for_state
get_clock_requirements_for_state() was added in 2018 by
commit 8ab2180f96 ("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>
This commit is contained in:
committed by
Alex Deucher
parent
fa88342931
commit
6d04e9785c
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user