aboutsummaryrefslogtreecommitdiff
path: root/x11-servers/xorg-server/files/patch-radeon_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11-servers/xorg-server/files/patch-radeon_driver.c')
-rw-r--r--x11-servers/xorg-server/files/patch-radeon_driver.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/x11-servers/xorg-server/files/patch-radeon_driver.c b/x11-servers/xorg-server/files/patch-radeon_driver.c
new file mode 100644
index 000000000000..7361e77a5eaf
--- /dev/null
+++ b/x11-servers/xorg-server/files/patch-radeon_driver.c
@@ -0,0 +1,19 @@
+--- programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c.orig Tue Aug 24 17:30:41 2004
++++ programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c Thu Jan 13 14:34:17 2005
+@@ -4471,10 +4471,12 @@
+
+ RADEONSave(pScrn);
+
+- if (xf86ReturnOptValBool(info->Options, OPTION_DYNAMIC_CLOCKS, FALSE)) {
+- RADEONSetDynamicClock(pScrn, 1);
+- } else {
+- RADEONSetDynamicClock(pScrn, 0);
++ if ((!info->IsSecondary) && info->IsMobility) {
++ if (xf86ReturnOptValBool(info->Options, OPTION_DYNAMIC_CLOCKS, FALSE)) {
++ RADEONSetDynamicClock(pScrn, 1);
++ } else {
++ RADEONSetDynamicClock(pScrn, 0);
++ }
+ }
+
+ if (info->FBDev) {