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

Commit 08581bce authored by Xiang Wang's avatar Xiang Wang Committed by Automerger Merge Worker
Browse files

Merge "ThermalManager: Don't hold mSamples lock while calling power HAL" into main am: 9946c950

parents 5aec5b67 9946c950
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1628,9 +1628,9 @@ public class ThermalManagerService extends SystemService {
        long mInactivityThresholdMillis = INACTIVITY_THRESHOLD_MILLIS;

        void updateThresholds() {
            synchronized (mSamples) {
            List<TemperatureThreshold> thresholds =
                        mHalWrapper.getTemperatureThresholds(true, Temperature.TYPE_SKIN);
            synchronized (mSamples) {
                if (Flags.allowThermalHeadroomThresholds()) {
                    Arrays.fill(mHeadroomThresholds, Float.NaN);
                }