Files
MuditaOS/module-sys/SystemManager/cpu/algorithm/ImmediateUpscale.cpp
Lefucjusz 773f2c7eb1 [BH-2069] Update license URL in headers
Update outdated license file URL in
license headers across all project.
2024-09-18 11:53:01 +02:00

18 lines
568 B
C++

// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md
#include "ImmediateUpscale.hpp"
namespace sys::cpu
{
AlgorithmResult ImmediateUpscale::calculateImplementation(const AlgorithmData &data)
{
const auto now = data.sentinel.minFrequency;
const auto was = data.curentFrequency;
if (now > was) {
return {algorithm::Change::UpScaled, now};
}
return {algorithm::Change::NoChange, was};
}
} // namespace sys::cpu