mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-14 00:39:19 -05:00
21 lines
609 B
C++
21 lines
609 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
|
|
|
|
#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
|