Loading drivers/cpufreq/qcom-cpufreq.c +5 −2 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ * MSM architecture cpufreq driver * * Copyright (C) 2007 Google, Inc. * Copyright (c) 2007-2017, The Linux Foundation. All rights reserved. * Copyright (c) 2007-2018, The Linux Foundation. All rights reserved. * Author: Mike A. Chan <mikechan@google.com> * * This software is licensed under the terms of the GNU General Public Loading Loading @@ -63,8 +63,11 @@ static int set_cpu_freq(struct cpufreq_policy *policy, unsigned int new_freq, rate = clk_round_rate(cpu_clk[policy->cpu], rate); ret = clk_set_rate(cpu_clk[policy->cpu], rate); cpufreq_freq_transition_end(policy, &freqs, ret); if (!ret) if (!ret) { arch_set_freq_scale(policy->related_cpus, new_freq, policy->cpuinfo.max_freq); trace_cpu_frequency_switch_end(policy->cpu); } return ret; } Loading Loading
drivers/cpufreq/qcom-cpufreq.c +5 −2 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ * MSM architecture cpufreq driver * * Copyright (C) 2007 Google, Inc. * Copyright (c) 2007-2017, The Linux Foundation. All rights reserved. * Copyright (c) 2007-2018, The Linux Foundation. All rights reserved. * Author: Mike A. Chan <mikechan@google.com> * * This software is licensed under the terms of the GNU General Public Loading Loading @@ -63,8 +63,11 @@ static int set_cpu_freq(struct cpufreq_policy *policy, unsigned int new_freq, rate = clk_round_rate(cpu_clk[policy->cpu], rate); ret = clk_set_rate(cpu_clk[policy->cpu], rate); cpufreq_freq_transition_end(policy, &freqs, ret); if (!ret) if (!ret) { arch_set_freq_scale(policy->related_cpus, new_freq, policy->cpuinfo.max_freq); trace_cpu_frequency_switch_end(policy->cpu); } return ret; } Loading