commit | 4db7c34cb41a3d7ed7db7a84413d7c225278c36a | [log] [tgz] |
---|---|---|
author | Yue Hu <huyue2@yulong.com> | Fri Apr 19 14:27:58 2019 +0800 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Tue Apr 23 10:58:43 2019 +0200 |
tree | 66506ba7044078b2246d76ade741c63b0041cdb5 | |
parent | b23aa311fa1f376640069e5da897b4a6148d104f [diff] |
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>