aboutsummaryrefslogtreecommitdiffstats
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorYue Hu <[email protected]>2019-04-19 06:27:58 +0000
committerRafael J. Wysocki <[email protected]>2019-04-23 08:58:43 +0000
commit4db7c34cb41a3d7ed7db7a84413d7c225278c36a (patch)
tree66506ba7044078b2246d76ade741c63b0041cdb5 /lib/memory-notifier-error-inject.c
parentcpufreq: Remove needless bios_limit check in show_bios_limit() (diff)
downloadkernel-4db7c34cb41a3d7ed7db7a84413d7c225278c36a.tar.gz
kernel-4db7c34cb41a3d7ed7db7a84413d7c225278c36a.zip
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 <[email protected]> Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions