[BH-1801] Fix incorrect calculation of requested CPU frequency

Sometimes when the frequency is locked, e.g. at 132 MHz, the algorithm
still calculated a lower frequency, e.g. 66 MHz.
This commit is contained in:
Maciej Gibowicz
2023-10-27 11:31:59 +02:00
committed by Maciej Gibowicz
parent 0f43423419
commit cbe1ed63e5
14 changed files with 34 additions and 35 deletions

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "AlgorithmFactory.hpp"
@@ -32,7 +32,7 @@ namespace sys::cpu
}
AlgorithmResult AlgorithmFactory::calculate(const std::list<sys::cpu::AlgoID> &algorithms,
cpu::AlgorithmData &data,
const cpu::AlgorithmData &data,
AlgoID *used)
{
for (auto id : algorithms) {