Re: [PATCH 2/2] cpufreq: conservative: set requested_freq to policy max when it is over policy max
On 8 November 2013 10:53, Xiaoguang Chen wrote: > When requested_freq is over policy->max, set it to policy->max. > This can help to speed up decreasing frequency. > > Signed-off-by: Xiaoguang Chen > --- > drivers/cpufreq/cpufreq_conservative.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/cpufreq/cpufreq_conservative.c > b/drivers/cpufreq/cpufreq_conservative.c > index 218460f..25a70d0 100644 > --- a/drivers/cpufreq/cpufreq_conservative.c > +++ b/drivers/cpufreq/cpufreq_conservative.c > @@ -68,6 +68,9 @@ static void cs_check_cpu(int cpu, unsigned int load) > > dbs_info->requested_freq += get_freq_target(cs_tuners, > policy); > > + if (dbs_info->requested_freq > policy->max) > + dbs_info->requested_freq = policy->max; > + > __cpufreq_driver_target(policy, dbs_info->requested_freq, > CPUFREQ_RELATION_H); > return; Acked-by: Viresh Kumar -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH 2/2] cpufreq: conservative: set requested_freq to policy max when it is over policy max
When requested_freq is over policy->max, set it to policy->max. This can help to speed up decreasing frequency. Signed-off-by: Xiaoguang Chen --- drivers/cpufreq/cpufreq_conservative.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index 218460f..25a70d0 100644 --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c @@ -68,6 +68,9 @@ static void cs_check_cpu(int cpu, unsigned int load) dbs_info->requested_freq += get_freq_target(cs_tuners, policy); + if (dbs_info->requested_freq > policy->max) + dbs_info->requested_freq = policy->max; + __cpufreq_driver_target(policy, dbs_info->requested_freq, CPUFREQ_RELATION_H); return; -- 1.8.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH 2/2] cpufreq: conservative: set requested_freq to policy max when it is over policy max
When requested_freq is over policy-max, set it to policy-max. This can help to speed up decreasing frequency. Signed-off-by: Xiaoguang Chen che...@marvell.com --- drivers/cpufreq/cpufreq_conservative.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index 218460f..25a70d0 100644 --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c @@ -68,6 +68,9 @@ static void cs_check_cpu(int cpu, unsigned int load) dbs_info-requested_freq += get_freq_target(cs_tuners, policy); + if (dbs_info-requested_freq policy-max) + dbs_info-requested_freq = policy-max; + __cpufreq_driver_target(policy, dbs_info-requested_freq, CPUFREQ_RELATION_H); return; -- 1.8.0 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 2/2] cpufreq: conservative: set requested_freq to policy max when it is over policy max
On 8 November 2013 10:53, Xiaoguang Chen che...@marvell.com wrote: When requested_freq is over policy-max, set it to policy-max. This can help to speed up decreasing frequency. Signed-off-by: Xiaoguang Chen che...@marvell.com --- drivers/cpufreq/cpufreq_conservative.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index 218460f..25a70d0 100644 --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c @@ -68,6 +68,9 @@ static void cs_check_cpu(int cpu, unsigned int load) dbs_info-requested_freq += get_freq_target(cs_tuners, policy); + if (dbs_info-requested_freq policy-max) + dbs_info-requested_freq = policy-max; + __cpufreq_driver_target(policy, dbs_info-requested_freq, CPUFREQ_RELATION_H); return; Acked-by: Viresh Kumar viresh.ku...@linaro.org -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/