htc: implement psc/pm loop

This commit is contained in:
Michael Scire
2021-02-10 03:14:26 -08:00
committed by SciresM
parent 7485a1968a
commit 79a3f442d6
2 changed files with 113 additions and 2 deletions

View File

@@ -198,6 +198,13 @@ namespace ams::htc {
}
namespace server {
void InitializePowerStateMonitor(htclow::impl::DriverType driver_type, htclow::HtclowManager *htclow_manager);
void LoopMonitorPowerState();
}
}
int main(int argc, char **argv)
@@ -246,7 +253,7 @@ int main(int argc, char **argv)
}
/* Initialize psc. */
//htc::server::InitializePowerStateMonitor(driver_type, htclow_manager);
htc::server::InitializePowerStateMonitor(driver_type, htclow_manager);
/* Start all threads. */
os::StartThread(std::addressof(htc_ipc_thread));
@@ -256,7 +263,7 @@ int main(int argc, char **argv)
}
/* Loop psc monitor. */
//htc::server::LoopMonitorPowerState();
htc::server::LoopMonitorPowerState();
/* Destroy all threads. */
for (size_t i = 0; i < htc::NumHtcsIpcThreads; ++i) {