// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md
#pragma once
#include "Algorithm.hpp"
#include "lpm/PowerProfile.hpp"
namespace sys::cpu
{
class FrequencyHold : public Algorithm
{
bsp::CpuFrequencyMHz toHold;
const bsp::PowerProfile &profile;
[[nodiscard]] AlgorithmResult calculateImplementation(const AlgorithmData &data) override;
public:
explicit FrequencyHold(bsp::CpuFrequencyMHz toHold, const bsp::PowerProfile &profile);
};
} // namespace sys::cpu