Re: [PATCH] cpufreq: Return 0 from ->fast_switch() on errors

2017-08-10 Thread Rafael J. Wysocki
On Wednesday, August 9, 2017 6:51:46 AM CEST Viresh Kumar wrote: > CPUFREQ_ENTRY_INVALID is a special symbol which is used to specify that > an entry in the cpufreq table is invalid. But using it outside of the > scope of the cpufreq table looks a bit incorrect. > > We can represent an invalid

Re: [PATCH] cpufreq: Return 0 from ->fast_switch() on errors

2017-08-10 Thread Rafael J. Wysocki
On Wednesday, August 9, 2017 6:51:46 AM CEST Viresh Kumar wrote: > CPUFREQ_ENTRY_INVALID is a special symbol which is used to specify that > an entry in the cpufreq table is invalid. But using it outside of the > scope of the cpufreq table looks a bit incorrect. > > We can represent an invalid

[PATCH] cpufreq: Return 0 from ->fast_switch() on errors

2017-08-08 Thread Viresh Kumar
CPUFREQ_ENTRY_INVALID is a special symbol which is used to specify that an entry in the cpufreq table is invalid. But using it outside of the scope of the cpufreq table looks a bit incorrect. We can represent an invalid frequency by writing it as 0 instead if we need. Note that it is already done

[PATCH] cpufreq: Return 0 from ->fast_switch() on errors

2017-08-08 Thread Viresh Kumar
CPUFREQ_ENTRY_INVALID is a special symbol which is used to specify that an entry in the cpufreq table is invalid. But using it outside of the scope of the cpufreq table looks a bit incorrect. We can represent an invalid frequency by writing it as 0 instead if we need. Note that it is already done