HDMA: No overhead for HDMA if all channels are disabled (?)

This commit is contained in:
Sour 2019-03-22 21:10:27 -04:00
parent 7e091529aa
commit 273403676a

View file

@ -83,8 +83,11 @@ void DmaController::RunDma(DmaChannelConfig &channel)
void DmaController::InitHdmaChannels()
{
//"The overhead is ~18 master cycles"
_memoryManager->IncrementMasterClockValue<18>();
if(_hdmaChannels) {
//"The overhead is ~18 master cycles"
_memoryManager->IncrementMasterClockValue<18>();
}
for(int i = 0; i < 8; i++) {
DmaChannelConfig &ch = _channel[i];