drm/radeon: drop btc_get_max_clock_from_voltage_dependency_table
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Sep 2014 13:45:32 +0000 (09:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Oct 2014 13:00:07 +0000 (09:00 -0400)
It's no longer used now that the underlying bugs are fixed.

Reviewed-by: Alexandre Demers <alexandre.f.demers@gmail.com>
Tested-by: Alexandre Demers <alexandre.f.demers@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/btc_dpm.c
drivers/gpu/drm/radeon/btc_dpm.h

index b7181607e4212f406f74b75d89f0a62d4ff53b99..300d971187c4fca19f5b9676cb92d74c6b712969 100644 (file)
@@ -1170,23 +1170,6 @@ static const struct radeon_blacklist_clocks btc_blacklist_clocks[] =
         { 25000, 30000, RADEON_SCLK_UP }
 };
 
-void btc_get_max_clock_from_voltage_dependency_table(struct radeon_clock_voltage_dependency_table *table,
-                                                    u32 *max_clock)
-{
-       u32 i, clock = 0;
-
-       if ((table == NULL) || (table->count == 0)) {
-               *max_clock = clock;
-               return;
-       }
-
-       for (i = 0; i < table->count; i++) {
-               if (clock < table->entries[i].clk)
-                       clock = table->entries[i].clk;
-       }
-       *max_clock = clock;
-}
-
 void btc_apply_voltage_dependency_rules(struct radeon_clock_voltage_dependency_table *table,
                                        u32 clock, u16 max_voltage, u16 *voltage)
 {
index 3b6f12b7760ba48066f2144b73e0dc82c6521946..1a15e0e41950604ec8c27df9b11c6933c43d622d 100644 (file)
@@ -46,8 +46,6 @@ void btc_adjust_clock_combinations(struct radeon_device *rdev,
                                   struct rv7xx_pl *pl);
 void btc_apply_voltage_dependency_rules(struct radeon_clock_voltage_dependency_table *table,
                                        u32 clock, u16 max_voltage, u16 *voltage);
-void btc_get_max_clock_from_voltage_dependency_table(struct radeon_clock_voltage_dependency_table *table,
-                                                    u32 *max_clock);
 void btc_apply_voltage_delta_rules(struct radeon_device *rdev,
                                   u16 max_vddc, u16 max_vddci,
                                   u16 *vddc, u16 *vddci);