mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-18 12:04:03 -04:00
15 lines
452 B
C++
15 lines
452 B
C++
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include "ImmediateUpscale.hpp"
|
|
|
|
namespace sys::cpu
|
|
{
|
|
bsp::CpuFrequencyMHz ImmediateUpscale::calculateImplementation(const AlgorithmData &data)
|
|
{
|
|
const auto now = data.sentinel.frequency;
|
|
const auto was = data.curentFrequency;
|
|
return std::max(now, was);
|
|
}
|
|
} // namespace sys::cpu
|