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

Commit 36233138 authored by Kevin DuBois's avatar Kevin DuBois
Browse files

SF: correct 90hz debug flags

debug.sf.set_idle_timer_ms > 0, debug.sf.use_90Hz == 0, was activating
boost to 90Hz. This corrects it so that if debug.sf.use_90Hz == 0,
then set_idle_timer has no effect.

Fixes: 124780321
Test: Manual systrace inspection
Change-Id: If926c086b5bdcf3645baa958bd19c7b163718728
parent bd6654bd
Loading
Loading
Loading
Loading
+10 −9
Original line number Diff line number Diff line
@@ -715,6 +715,7 @@ void SurfaceFlinger::init() {
        ALOGE("Run StartPropertySetThread failed!");
    }

    if (mUse90Hz) {
        mScheduler->setExpiredIdleTimerCallback([this] {
            Mutex::Autolock lock(mStateLock);
            setRefreshRateTo(RefreshRateType::DEFAULT);
@@ -723,7 +724,7 @@ void SurfaceFlinger::init() {
            Mutex::Autolock lock(mStateLock);
            setRefreshRateTo(RefreshRateType::PERFORMANCE);
        });

    }
    mRefreshRateStats = std::make_unique<scheduler::RefreshRateStats>(getHwComposer().getConfigs(
                                                                              *display->getId()),
                                                                      mTimeStats);