Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e87d03f4 authored by Todd Poynor's avatar Todd Poynor Committed by android-build-merger
Browse files

Merge "thermalservice: don't register IThermalCallback service" into oc-mr1-dev am: c0cfe7a5

am: 6acd06cc

Change-Id: Ia7a3b2e37a2d7a42044564032fcc690c1cd80c9c
parents b91fc70e 6acd06cc
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -97,18 +97,12 @@ void ThermalServiceDaemon::getThermalHal() {
}

void ThermalServiceDaemon::thermalCallbackStartup() {
    status_t err;

    // HIDL IThermalCallback startup
    // Need at least 2 threads in thread pool since we wait for dead HAL
    // to come back on the binder death notification thread and we need
    // another thread for the incoming service now available call.
    configureRpcThreadpool(2, false /* callerWillJoin */);
    mThermalCallback = new ThermalCallback();
    err = mThermalCallback->registerAsService();
    ALOGE_IF(err != OK, "Cannot register %s: %d",
        IThermalCallback::descriptor, err);

    // Lookup Thermal HAL and register our ThermalCallback.
    getThermalHal();
}