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:
Panchajanya1999 2021-12-12 15:14:43 +01:00 committed by azrim
parent 493b9c23ae
commit ef66548bf0
No known key found for this signature in database
GPG Key ID: 497F8FB059B45D1C

View File

@ -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);
}