Loading drivers/power/battery_current_limit.c +4 −1 Original line number Diff line number Diff line /* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2017, 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 Loading Loading @@ -203,6 +203,7 @@ static uint32_t bcl_hotplug_request, bcl_hotplug_mask, bcl_soc_hotplug_mask; static uint32_t bcl_frequency_mask; static struct work_struct bcl_hotplug_work; static DEFINE_MUTEX(bcl_hotplug_mutex); static DEFINE_MUTEX(bcl_cpufreq_mutex); static bool bcl_hotplug_enabled; static uint32_t battery_soc_val = 100; static uint32_t soc_low_threshold; Loading Loading @@ -252,6 +253,7 @@ static void update_cpu_freq(void) union device_request cpufreq_req; trace_bcl_sw_mitigation_event("Start Frequency Mitigate"); mutex_lock(&bcl_cpufreq_mutex); cpufreq_req.freq.max_freq = UINT_MAX; cpufreq_req.freq.min_freq = CPUFREQ_MIN_NO_MITIGATION; Loading @@ -276,6 +278,7 @@ static void update_cpu_freq(void) pr_err("Error updating freq for CPU%d. ret:%d\n", cpu, ret); } mutex_unlock(&bcl_cpufreq_mutex); trace_bcl_sw_mitigation_event("End Frequency Mitigation"); } Loading Loading
drivers/power/battery_current_limit.c +4 −1 Original line number Diff line number Diff line /* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2017, 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 Loading Loading @@ -203,6 +203,7 @@ static uint32_t bcl_hotplug_request, bcl_hotplug_mask, bcl_soc_hotplug_mask; static uint32_t bcl_frequency_mask; static struct work_struct bcl_hotplug_work; static DEFINE_MUTEX(bcl_hotplug_mutex); static DEFINE_MUTEX(bcl_cpufreq_mutex); static bool bcl_hotplug_enabled; static uint32_t battery_soc_val = 100; static uint32_t soc_low_threshold; Loading Loading @@ -252,6 +253,7 @@ static void update_cpu_freq(void) union device_request cpufreq_req; trace_bcl_sw_mitigation_event("Start Frequency Mitigate"); mutex_lock(&bcl_cpufreq_mutex); cpufreq_req.freq.max_freq = UINT_MAX; cpufreq_req.freq.min_freq = CPUFREQ_MIN_NO_MITIGATION; Loading @@ -276,6 +278,7 @@ static void update_cpu_freq(void) pr_err("Error updating freq for CPU%d. ret:%d\n", cpu, ret); } mutex_unlock(&bcl_cpufreq_mutex); trace_bcl_sw_mitigation_event("End Frequency Mitigation"); } Loading