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

Commit c599f085 authored by Shiju Mathew's avatar Shiju Mathew
Browse files

msm-core: Disable sensor threshold trip during suspend



Disable sensor threshold trip during suspend rather
than a threshold cancel. This is required since cancel
threshold would remove the threshold pointer from
thermal core driver. This would corrupt the sensor
threshold list if there is a sensor threshold interrupt
at the same time.

Change-Id: I152c8631282993ba1a2177f890793ce2a02990cb
Signed-off-by: default avatarShiju Mathew <shijum@codeaurora.org>
parent 04b23645
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -778,10 +778,10 @@ static int system_suspend_handler(struct notifier_block *nb,
			if (activity[cpu].sensor_id < 0)
				continue;

			sensor_cancel_trip(activity[cpu].sensor_id,
				&activity[cpu].hi_threshold);
			sensor_cancel_trip(activity[cpu].sensor_id,
				&activity[cpu].low_threshold);
			sensor_activate_trip(activity[cpu].sensor_id,
				&activity[cpu].hi_threshold, false);
			sensor_activate_trip(activity[cpu].sensor_id,
				&activity[cpu].low_threshold, false);
		}
		break;
	default: