mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 11:53:01 +00:00
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: Shiju Mathew <shijum@codeaurora.org>
This commit is contained in:
parent
04b2364500
commit
c599f0859a
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue