drm/radeon/kms/pm: switch to dynamically allocating clock mode array
On newer chips the number of clock modes per power state varies. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
bbe26ffe9f
commit
8f3f1c9a22
2 changed files with 82 additions and 39 deletions
|
|
@ -784,8 +784,7 @@ struct radeon_pm_clock_info {
|
|||
|
||||
struct radeon_power_state {
|
||||
enum radeon_pm_state_type type;
|
||||
/* XXX: use a define for num clock modes */
|
||||
struct radeon_pm_clock_info clock_info[8];
|
||||
struct radeon_pm_clock_info *clock_info;
|
||||
/* number of valid clock modes in this power state */
|
||||
int num_clock_modes;
|
||||
struct radeon_pm_clock_info *default_clock_mode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue