diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/apm/controller.cpp | 3 | ||||
| -rw-r--r-- | src/core/hle/service/apm/controller.h | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/service/apm/controller.cpp b/src/core/hle/service/apm/controller.cpp index 4376612eb..073d0f6fa 100644 --- a/src/core/hle/service/apm/controller.cpp +++ b/src/core/hle/service/apm/controller.cpp | |||
| @@ -13,7 +13,7 @@ constexpr PerformanceConfiguration DEFAULT_PERFORMANCE_CONFIGURATION = | |||
| 13 | PerformanceConfiguration::Config7; | 13 | PerformanceConfiguration::Config7; |
| 14 | 14 | ||
| 15 | Controller::Controller(Core::Timing::CoreTiming& core_timing) | 15 | Controller::Controller(Core::Timing::CoreTiming& core_timing) |
| 16 | : core_timing(core_timing), configs{ | 16 | : core_timing{core_timing}, configs{ |
| 17 | {PerformanceMode::Handheld, DEFAULT_PERFORMANCE_CONFIGURATION}, | 17 | {PerformanceMode::Handheld, DEFAULT_PERFORMANCE_CONFIGURATION}, |
| 18 | {PerformanceMode::Docked, DEFAULT_PERFORMANCE_CONFIGURATION}, | 18 | {PerformanceMode::Docked, DEFAULT_PERFORMANCE_CONFIGURATION}, |
| 19 | } {} | 19 | } {} |
| @@ -63,6 +63,7 @@ PerformanceConfiguration Controller::GetCurrentPerformanceConfiguration(Performa | |||
| 63 | void Controller::SetClockSpeed(u32 mhz) { | 63 | void Controller::SetClockSpeed(u32 mhz) { |
| 64 | LOG_INFO(Service_APM, "called, mhz={:08X}", mhz); | 64 | LOG_INFO(Service_APM, "called, mhz={:08X}", mhz); |
| 65 | // TODO(DarkLordZach): Actually signal core_timing to change clock speed. | 65 | // TODO(DarkLordZach): Actually signal core_timing to change clock speed. |
| 66 | // TODO(Rodrigo): Remove [[maybe_unused]] when core_timing is used. | ||
| 66 | } | 67 | } |
| 67 | 68 | ||
| 68 | } // namespace Service::APM | 69 | } // namespace Service::APM |
diff --git a/src/core/hle/service/apm/controller.h b/src/core/hle/service/apm/controller.h index 8ac80eaea..454caa6eb 100644 --- a/src/core/hle/service/apm/controller.h +++ b/src/core/hle/service/apm/controller.h | |||
| @@ -50,7 +50,7 @@ enum class PerformanceMode : u8 { | |||
| 50 | // system during times of high load -- this simply maps to different PerformanceConfigs to use. | 50 | // system during times of high load -- this simply maps to different PerformanceConfigs to use. |
| 51 | class Controller { | 51 | class Controller { |
| 52 | public: | 52 | public: |
| 53 | Controller(Core::Timing::CoreTiming& core_timing); | 53 | explicit Controller(Core::Timing::CoreTiming& core_timing); |
| 54 | ~Controller(); | 54 | ~Controller(); |
| 55 | 55 | ||
| 56 | void SetPerformanceConfiguration(PerformanceMode mode, PerformanceConfiguration config); | 56 | void SetPerformanceConfiguration(PerformanceMode mode, PerformanceConfiguration config); |
| @@ -62,9 +62,9 @@ public: | |||
| 62 | private: | 62 | private: |
| 63 | void SetClockSpeed(u32 mhz); | 63 | void SetClockSpeed(u32 mhz); |
| 64 | 64 | ||
| 65 | std::map<PerformanceMode, PerformanceConfiguration> configs; | 65 | [[maybe_unused]] Core::Timing::CoreTiming& core_timing; |
| 66 | 66 | ||
| 67 | Core::Timing::CoreTiming& core_timing; | 67 | std::map<PerformanceMode, PerformanceConfiguration> configs; |
| 68 | }; | 68 | }; |
| 69 | 69 | ||
| 70 | } // namespace Service::APM | 70 | } // namespace Service::APM |