Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpufreq: Remove ready() callback

This isn't used anymore, get rid of it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Viresh Kumar and committed by
Rafael J. Wysocki
4bf8e582 9ab0a6cb

-12
-3
Documentation/cpu-freq/cpu-drivers.rst
··· 75 75 .resume - A pointer to a per-policy resume function which is called 76 76 with interrupts disabled and _before_ the governor is started again. 77 77 78 - .ready - A pointer to a per-policy ready function which is called after 79 - the policy is fully initialized. 80 - 81 78 .attr - A pointer to a NULL-terminated list of "struct freq_attr" which 82 79 allow to export values to sysfs. 83 80
-2
Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst
··· 80 80 .resume - 一个指向per-policy恢复函数的指针,该函数在关中断且在调节器再一次开始前被 81 81 调用。 82 82 83 - .ready - 一个指向per-policy准备函数的指针,该函数在策略完全初始化之后被调用。 84 - 85 83 .attr - 一个指向NULL结尾的"struct freq_attr"列表的指针,该函数允许导出值到 86 84 sysfs。 87 85
-4
drivers/cpufreq/cpufreq.c
··· 1517 1517 1518 1518 kobject_uevent(&policy->kobj, KOBJ_ADD); 1519 1519 1520 - /* Callback for handling stuff after policy is ready */ 1521 - if (cpufreq_driver->ready) 1522 - cpufreq_driver->ready(policy); 1523 - 1524 1520 if (cpufreq_thermal_control_enabled(cpufreq_driver)) 1525 1521 policy->cdev = of_cpufreq_cooling_register(policy); 1526 1522
-3
include/linux/cpufreq.h
··· 367 367 int (*suspend)(struct cpufreq_policy *policy); 368 368 int (*resume)(struct cpufreq_policy *policy); 369 369 370 - /* Will be called after the driver is fully initialized */ 371 - void (*ready)(struct cpufreq_policy *policy); 372 - 373 370 struct freq_attr **attr; 374 371 375 372 /* platform specific boost support code */