cpufreq: Move the check of cpufreq_driver->get into cpufreq_verify_current_freq()
authorLifeng Zheng <zhenglifeng1@huawei.com>
Wed, 9 Jul 2025 10:41:44 +0000 (18:41 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 14 Jul 2025 17:38:10 +0000 (19:38 +0200)
commit908981d85f86c5e2b39dfe0b2267c6d44d9c48f7
treefc9366da15d9b326770bb6db7bb1266a03ffbd50
parentd1378d1d7edb3a4c4935a44fe834ae135be03564
cpufreq: Move the check of cpufreq_driver->get into cpufreq_verify_current_freq()

Move the check of cpufreq_driver->get into cpufreq_verify_current_freq() in
case of calling it without check.

Signed-off-by: Lifeng Zheng <zhenglifeng1@huawei.com>
Link: https://patch.msgid.link/20250709104145.2348017-4-zhenglifeng1@huawei.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c