radeon: only enable dynclks if asked for
parent
31f8d4218c
commit
be3dac976e
|
@ -37,7 +37,7 @@
|
||||||
#include "drm_pciids.h"
|
#include "drm_pciids.h"
|
||||||
|
|
||||||
int radeon_no_wb;
|
int radeon_no_wb;
|
||||||
int radeon_dynclks = 1;
|
int radeon_dynclks = -1;
|
||||||
int radeon_r4xx_atom = 0;
|
int radeon_r4xx_atom = 0;
|
||||||
int radeon_agpmode = 0;
|
int radeon_agpmode = 0;
|
||||||
|
|
||||||
|
|
|
@ -2601,6 +2601,8 @@ int radeon_static_clocks_init(struct drm_device *dev)
|
||||||
{
|
{
|
||||||
drm_radeon_private_t *dev_priv = dev->dev_private;
|
drm_radeon_private_t *dev_priv = dev->dev_private;
|
||||||
|
|
||||||
|
if (radeon_dynclks != -1) {
|
||||||
|
|
||||||
if (dev_priv->chip_family == CHIP_RS400 ||
|
if (dev_priv->chip_family == CHIP_RS400 ||
|
||||||
dev_priv->chip_family == CHIP_RS480)
|
dev_priv->chip_family == CHIP_RS480)
|
||||||
radeon_dynclks = 0;
|
radeon_dynclks = 0;
|
||||||
|
@ -2613,6 +2615,8 @@ int radeon_static_clocks_init(struct drm_device *dev)
|
||||||
radeon_atom_dyn_clk_setup(dev, 1);
|
radeon_atom_dyn_clk_setup(dev, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (radeon_is_r300(dev_priv) || radeon_is_rv100(dev_priv))
|
||||||
radeon_force_some_clocks(dev);
|
radeon_force_some_clocks(dev);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue