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:
Shiju Mathew 2014-11-28 20:08:14 -05:00
parent 04b2364500
commit c599f0859a

View file

@ -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: