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