Searched hist:"4 db7c34cb41a3d7ed7db7a84413d7c225278c36a" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/cpufreq/ |
H A D | cpufreq.c | diff 4db7c34cb41a3d7ed7db7a84413d7c225278c36a Fri Apr 19 01:27:58 CDT 2019 Yue Hu <huyue2@yulong.com> cpufreq: Move ->get callback check outside of __cpufreq_get()
Currenly, __cpufreq_get() called by show_cpuinfo_cur_freq() will check ->get callback. That is needless since cpuinfo_cur_freq attribute will not be created if ->get is not set. So let's drop it in __cpufreq_get(). Also keep this check in cpufreq_get().
Signed-off-by: Yue Hu <huyue2@yulong.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
|