if (lvl_sel == chip->chg_therm_lvl_sel)
return 0;
- pr_info("%s,set thermal level:%d", lvl_sel);
-
// mutex_lock(&chip->current_change_lock);
prev_therm_lvl = chip->chg_therm_lvl_sel;
chip->chg_therm_lvl_sel = lvl_sel;
chip->chg_thermal_mitigation[lvl_sel];
chip->update_allowed_fastchg_current_ma = true;
+ pr_info("%s,set thermal level:%d\n",__func__,lvl_sel);
+
cancel_delayed_work(&chip->heartbeat_work);
schedule_delayed_work(&chip->heartbeat_work,
msecs_to_jiffies(0));