mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
thermal: qcom: bcl: Return before thermal trip evaluates
Returning before thermal trips due to lower battery should fix the lag due to restricted thermals. This what BCL does. test: check 2-3 cycles of battery percentage under 10% result: Fixes device lag completely. Maintains constant performance Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
parent
493b9c23ae
commit
ef66548bf0
@ -100,9 +100,11 @@ static void bcl_evaluate_soc(struct work_struct *work)
|
||||
|
||||
bcl_perph->trip_val = battery_percentage;
|
||||
mutex_unlock(&bcl_perph->state_trans_lock);
|
||||
|
||||
return; //return before thermal handle trips with percentage
|
||||
|
||||
of_thermal_handle_trip(bcl_perph->tz_dev);
|
||||
|
||||
return;
|
||||
eval_exit:
|
||||
mutex_unlock(&bcl_perph->state_trans_lock);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user