Skip to content

Commit da471b8

Browse files
Dr. David Alan Gilbertalexdeucher
authored andcommitted
drm/amd/pm: Remove unused smu_mode2_reset_is_support
smu_mode2_reset_is_support() was added in 2020 by commit 5c03e58 ("drm/amdgpu:add smu mode1/2 support for aldebaran") but has remained unused. See discussion at: https://lore.kernel.org/all/DM4PR12MB5165D85BD85BC8FC8BF7A3B48E88A@DM4PR12MB5165.namprd12.prod.outlook.com/ Remove it. Signed-off-by: Dr. David Alan Gilbert <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent f6da61b commit da471b8

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3432,19 +3432,6 @@ bool smu_mode1_reset_is_support(struct smu_context *smu)
34323432
return ret;
34333433
}
34343434

3435-
bool smu_mode2_reset_is_support(struct smu_context *smu)
3436-
{
3437-
bool ret = false;
3438-
3439-
if (!smu->pm_enabled)
3440-
return false;
3441-
3442-
if (smu->ppt_funcs && smu->ppt_funcs->mode2_reset_is_support)
3443-
ret = smu->ppt_funcs->mode2_reset_is_support(smu);
3444-
3445-
return ret;
3446-
}
3447-
34483435
bool smu_link_reset_is_support(struct smu_context *smu)
34493436
{
34503437
bool ret = false;

drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1621,7 +1621,6 @@ int smu_get_power_limit(void *handle,
16211621
enum pp_power_type pp_power_type);
16221622

16231623
bool smu_mode1_reset_is_support(struct smu_context *smu);
1624-
bool smu_mode2_reset_is_support(struct smu_context *smu);
16251624
bool smu_link_reset_is_support(struct smu_context *smu);
16261625
int smu_mode1_reset(struct smu_context *smu);
16271626
int smu_link_reset(struct smu_context *smu);

0 commit comments

Comments
 (0)