diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2010-02-11 17:16:36 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-02-17 23:25:08 -0500 |
commit | 2745932495ca3634b11a8662b464d2bf0325ae78 (patch) | |
tree | 86194330d087c59c87a872a73eae82ff72da45e0 /drivers/gpu/drm/radeon/radeon_combios.c | |
parent | 5230aea62c0d8f53edcc3e014c3404132afcfeb4 (diff) |
drm/radeon/kms: accept slightly overclocked power modes
Fixes fdo bug #26329
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Tested-by: Tobias Jakobi <liquid.acid@gmx.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_combios.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_combios.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_combios.c b/drivers/gpu/drm/radeon/radeon_combios.c index 9989d22a4d8f..5ef791be5036 100644 --- a/drivers/gpu/drm/radeon/radeon_combios.c +++ b/drivers/gpu/drm/radeon/radeon_combios.c | |||
@@ -2374,9 +2374,9 @@ void radeon_combios_get_power_modes(struct radeon_device *rdev) | |||
2374 | goto default_mode; | 2374 | goto default_mode; |
2375 | /* skip overclock modes for now */ | 2375 | /* skip overclock modes for now */ |
2376 | if ((rdev->pm.power_state[state_index].clock_info[0].mclk > | 2376 | if ((rdev->pm.power_state[state_index].clock_info[0].mclk > |
2377 | rdev->clock.default_mclk) || | 2377 | rdev->clock.default_mclk + RADEON_MODE_OVERCLOCK_MARGIN) || |
2378 | (rdev->pm.power_state[state_index].clock_info[0].sclk > | 2378 | (rdev->pm.power_state[state_index].clock_info[0].sclk > |
2379 | rdev->clock.default_sclk)) | 2379 | rdev->clock.default_sclk + RADEON_MODE_OVERCLOCK_MARGIN)) |
2380 | goto default_mode; | 2380 | goto default_mode; |
2381 | rdev->pm.power_state[state_index].type = | 2381 | rdev->pm.power_state[state_index].type = |
2382 | POWER_STATE_TYPE_BATTERY; | 2382 | POWER_STATE_TYPE_BATTERY; |