| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | // Copyright 2021 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #include "cpufreqmodeprofilepart.h" |
| 5 | |
| 6 | #include "core/profilepartprovider.h" |
| 7 | #include "cpufreqmode.h" |
| 8 | #include <memory> |
| 9 | |
| 10 | CPUFreqModeProfilePart::CPUFreqModeProfilePart() noexcept |
| 11 | : ControlModeProfilePart(CPUFreqMode::ItemID) |
| 12 | { |
| 13 | } |
| 14 | |
| 15 | std::unique_ptr<ControlModeProfilePart> CPUFreqModeProfilePart::instance() const |
| 16 | { |
| 17 | return std::make_unique<CPUFreqModeProfilePart>(); |
| 18 | } |
| 19 | |
| 20 | bool const CPUFreqModeProfilePart::registered_ = |
| 21 | ProfilePartProvider::registerProvider(CPUFreqMode::ItemID, []() { |
| 22 | return std::make_unique<CPUFreqModeProfilePart>(); |
| 23 | }); |