Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee5fe7d7 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: bcl: Check battery state of charge for frequency mitigation"

parents 3528eea8 978d23c7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -257,7 +257,7 @@ static void update_cpu_freq(void)

	if (bcl_vph_state == BCL_LOW_THRESHOLD
		|| bcl_ibat_state == BCL_HIGH_THRESHOLD
		|| battery_soc_val <= soc_low_threshold) {
		|| bcl_soc_state == BCL_LOW_THRESHOLD) {
		cpufreq_req.freq.max_freq = (gbcl->bcl_monitor_type
			== BCL_IBAT_MONITOR_TYPE) ? gbcl->btm_freq_max
			: gbcl->bcl_p_freq_max;