radeon_hd: Fix superfluous DPMS hook calls
* The DPMS hook would be called on all possible displays causing lots of link training on incomplete connector structures that may be not attached / connected.
This commit is contained in:
parent
d229280a80
commit
4d449fccfe
|
@ -168,6 +168,8 @@ radeon_dpms_set_hook(int mode)
|
||||||
|
|
||||||
// As the accelerant hook doesn't pass crtc id
|
// As the accelerant hook doesn't pass crtc id
|
||||||
for (uint8 id = 0; id < MAX_DISPLAY; id++) {
|
for (uint8 id = 0; id < MAX_DISPLAY; id++) {
|
||||||
|
if (gDisplay[id]->attached == false)
|
||||||
|
continue;
|
||||||
radeon_dpms_set(id, mode);
|
radeon_dpms_set(id, mode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue