drm/radeon/dpm: add pre/post_set_power_state callback (sumo)

This properly implemented dynamic state adjustment by
using a working copy of the requested and current
power states.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Tento commit je obsažen v:
Alex Deucher
2013-06-25 15:40:21 -04:00
rodič 98243917d7
revize 422a56bc8a
4 změnil soubory, kde provedl 62 přidání a 22 odebrání

Zobrazit soubor

@@ -116,7 +116,6 @@ struct sumo_power_info {
struct sumo_pl acpi_pl;
struct sumo_pl boot_pl;
struct sumo_pl boost_pl;
struct sumo_ps current_ps;
bool disable_gfx_power_gating_in_uvd;
bool driver_nbps_policy_disable;
bool enable_alt_vddnb;
@@ -129,7 +128,10 @@ struct sumo_power_info {
bool enable_dynamic_patch_ps;
bool enable_dpm;
bool enable_boost;
struct sumo_ps hw_ps;
struct radeon_ps current_rps;
struct sumo_ps current_ps;
struct radeon_ps requested_rps;
struct sumo_ps requested_ps;
};
#define SUMO_UTC_DFLT_00 0x48