Re: [PATCH] cpufreq: Correct a freq check in cpufreq_set_policy

2015-07-28 Thread Rafael J. Wysocki
On Tuesday, July 28, 2015 11:34:21 AM Pan Xinhui wrote: > From: Pan Xinhui > > This check was originally added by commit 9c9a43ed2734 ("[CPUFREQ] > return error when failing to set minfreq").It attempt to return an error > on obviously incorrect limits when we echo xxx >.../scaling_max,min_freq >

Re: [PATCH] cpufreq: Correct a freq check in cpufreq_set_policy

2015-07-27 Thread Viresh Kumar
On 28-07-15, 11:34, Pan Xinhui wrote: > From: Pan Xinhui > > This check was originally added by commit 9c9a43ed2734 ("[CPUFREQ] > return error when failing to set minfreq").It attempt to return an error > on obviously incorrect limits when we echo xxx >.../scaling_max,min_freq > Actually we just

Re: [PATCH] cpufreq: Correct a freq check in cpufreq_set_policy

2015-07-27 Thread Pan Xinhui
hi, Viresh thanks for your quick reply! :) On 2015年07月28日 12:41, Viresh Kumar wrote: > On 28-07-15, 11:34, Pan Xinhui wrote: >> From: Pan Xinhui >> >> This check was originally added by commit 9c9a43ed2734 ("[CPUFREQ] >> return error when failing to set minfreq").It attempt to return an er

Re: [PATCH] cpufreq: Correct a freq check in cpufreq_set_policy

2015-07-27 Thread Viresh Kumar
On 28-07-15, 11:34, Pan Xinhui wrote: > From: Pan Xinhui > > This check was originally added by commit 9c9a43ed2734 ("[CPUFREQ] > return error when failing to set minfreq").It attempt to return an error > on obviously incorrect limits when we echo xxx >.../scaling_max,min_freq > Actually we just

[PATCH] cpufreq: Correct a freq check in cpufreq_set_policy

2015-07-27 Thread Pan Xinhui
From: Pan Xinhui This check was originally added by commit 9c9a43ed2734 ("[CPUFREQ] return error when failing to set minfreq").It attempt to return an error on obviously incorrect limits when we echo xxx >.../scaling_max,min_freq Actually we just need check if new_policy->min > new_policy->max. B