]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amd/pm: Rename enable_bapm() to notify_ac_dc()
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 19 May 2026 08:41:55 +0000 (10:41 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 May 2026 14:48:11 +0000 (10:48 -0400)
commitba1fcd1bac89d0403f910754e1d5ec22acb5bf28
tree1b10572ecca5db102c369131be86bfae709117d0
parent6d87e0199f7b83735b56e422d59f170a201897a8
drm/amd/pm: Rename enable_bapm() to notify_ac_dc()

No functional changes, just change the name of this
function pointer to be more generic.

BAPM refers to a specific feature on KV, but other kinds of
ASICs may also need the SMU to be notified on AC/DC changes.

Also remove the argument and use adev->pm.ac_power instead.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/include/kgd_pp_interface.h
drivers/gpu/drm/amd/pm/amdgpu_dpm.c
drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c