diff mbox

[1/2] drm/radeon: remove KV bapm callback

Message ID 1429824493-3162-1-git-send-email-dev@lynxeye.de (mailing list archive)
State New, archived
Headers show

Commit Message

Lucas Stach April 23, 2015, 9:28 p.m. UTC
It is never called. BAPM on KV is only controlled
through the power profile.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 drivers/gpu/drm/radeon/kv_dpm.c      | 12 ------------
 drivers/gpu/drm/radeon/radeon_asic.c |  1 -
 drivers/gpu/drm/radeon/radeon_asic.h |  1 -
 3 files changed, 14 deletions(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/radeon/kv_dpm.c b/drivers/gpu/drm/radeon/kv_dpm.c
index 0e236d0..98d8428 100644
--- a/drivers/gpu/drm/radeon/kv_dpm.c
+++ b/drivers/gpu/drm/radeon/kv_dpm.c
@@ -1157,18 +1157,6 @@  static void kv_update_requested_ps(struct radeon_device *rdev,
 	pi->requested_rps.ps_priv = &pi->requested_ps;
 }
 
-void kv_dpm_enable_bapm(struct radeon_device *rdev, bool enable)
-{
-	struct kv_power_info *pi = kv_get_pi(rdev);
-	int ret;
-
-	if (pi->bapm_enable) {
-		ret = kv_smc_bapm_enable(rdev, enable);
-		if (ret)
-			DRM_ERROR("kv_smc_bapm_enable failed\n");
-	}
-}
-
 static void kv_enable_thermal_int(struct radeon_device *rdev, bool enable)
 {
 	u32 thermal_int;
diff --git a/drivers/gpu/drm/radeon/radeon_asic.c b/drivers/gpu/drm/radeon/radeon_asic.c
index c0ecd12..2a33e38 100644
--- a/drivers/gpu/drm/radeon/radeon_asic.c
+++ b/drivers/gpu/drm/radeon/radeon_asic.c
@@ -2228,7 +2228,6 @@  static struct radeon_asic kv_asic = {
 		.debugfs_print_current_performance_level = &kv_dpm_debugfs_print_current_performance_level,
 		.force_performance_level = &kv_dpm_force_performance_level,
 		.powergate_uvd = &kv_dpm_powergate_uvd,
-		.enable_bapm = &kv_dpm_enable_bapm,
 	},
 	.pflip = {
 		.page_flip = &evergreen_page_flip,
diff --git a/drivers/gpu/drm/radeon/radeon_asic.h b/drivers/gpu/drm/radeon/radeon_asic.h
index 72bdd3b..85d76da 100644
--- a/drivers/gpu/drm/radeon/radeon_asic.h
+++ b/drivers/gpu/drm/radeon/radeon_asic.h
@@ -889,7 +889,6 @@  void kv_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev,
 int kv_dpm_force_performance_level(struct radeon_device *rdev,
 				   enum radeon_dpm_forced_level level);
 void kv_dpm_powergate_uvd(struct radeon_device *rdev, bool gate);
-void kv_dpm_enable_bapm(struct radeon_device *rdev, bool enable);
 
 /* uvd v1.0 */
 uint32_t uvd_v1_0_get_rptr(struct radeon_device *rdev,