mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-22 07:57:57 -04:00
[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:
committed by
Maciej Gibowicz
parent
0f43423419
commit
cbe1ed63e5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user