Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/display: Remove unused mpc1_is_mpcc_idle

mpc1_is_mpcc_idle() was added in 2017 by
commit feb4a3cd8eb0 ("drm/amd/display: Integrating MPC pseudocode")
but never used.

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Dr. David Alan Gilbert and committed by
Alex Deucher
3bd202b3 568199a5

-20
-16
drivers/gpu/drm/amd/display/dc/mpc/dcn10/dcn10_mpc.c
··· 142 142 return NULL; 143 143 } 144 144 145 - bool mpc1_is_mpcc_idle(struct mpc *mpc, int mpcc_id) 146 - { 147 - struct dcn10_mpc *mpc10 = TO_DCN10_MPC(mpc); 148 - unsigned int top_sel; 149 - unsigned int opp_id; 150 - unsigned int idle; 151 - 152 - REG_GET(MPCC_TOP_SEL[mpcc_id], MPCC_TOP_SEL, &top_sel); 153 - REG_GET(MPCC_OPP_ID[mpcc_id], MPCC_OPP_ID, &opp_id); 154 - REG_GET(MPCC_STATUS[mpcc_id], MPCC_IDLE, &idle); 155 - if (top_sel == 0xf && opp_id == 0xf && idle) 156 - return true; 157 - else 158 - return false; 159 - } 160 - 161 145 void mpc1_assert_mpcc_idle_before_connect(struct mpc *mpc, int mpcc_id) 162 146 { 163 147 struct dcn10_mpc *mpc10 = TO_DCN10_MPC(mpc);
-4
drivers/gpu/drm/amd/display/dc/mpc/dcn10/dcn10_mpc.h
··· 173 173 struct mpcc_sm_cfg *sm_cfg, 174 174 int mpcc_id); 175 175 176 - bool mpc1_is_mpcc_idle( 177 - struct mpc *mpc, 178 - int mpcc_id); 179 - 180 176 void mpc1_assert_mpcc_idle_before_connect( 181 177 struct mpc *mpc, 182 178 int mpcc_id);