commit | d218ed773915a2b762d132be6bb765637338c360 | [log] [tgz] |
---|---|---|
author | Viresh Kumar <viresh.kumar@linaro.org> | Fri Jun 03 10:58:51 2016 +0530 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Thu Jun 09 00:58:06 2016 +0200 |
tree | 12e1e64d24fc80cbadff5285a439d441ed186c2f | |
parent | 2372784542cb7a8b256a740840abf4503de0d669 [diff] |
cpufreq: Return index from cpufreq_frequency_table_target() This routine can't fail unless the frequency table is invalid and doesn't contain any valid entries. Make it return the index and WARN() in case it is used for an invalid table. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>