Skip to content

Commit

Permalink
cpufreq: Remove ready() callback
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Viresh Kumar authored and Rafael J. Wysocki committed Sep 2, 2021
1 parent 9ab0a6c commit 4bf8e58
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions Documentation/cpu-freq/cpu-drivers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ And optionally
.resume - A pointer to a per-policy resume function which is called
with interrupts disabled and _before_ the governor is started again.

.ready - A pointer to a per-policy ready function which is called after
the policy is fully initialized.

.attr - A pointer to a NULL-terminated list of "struct freq_attr" which
allow to export values to sysfs.

Expand Down
2 changes: 0 additions & 2 deletions Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ CPUfreq核心层注册一个cpufreq_driver结构体。
.resume - 一个指向per-policy恢复函数的指针,该函数在关中断且在调节器再一次开始前被
调用。

.ready - 一个指向per-policy准备函数的指针,该函数在策略完全初始化之后被调用。

.attr - 一个指向NULL结尾的"struct freq_attr"列表的指针,该函数允许导出值到
sysfs。

Expand Down
4 changes: 0 additions & 4 deletions drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1517,10 +1517,6 @@ static int cpufreq_online(unsigned int cpu)

kobject_uevent(&policy->kobj, KOBJ_ADD);

/* Callback for handling stuff after policy is ready */
if (cpufreq_driver->ready)
cpufreq_driver->ready(policy);

if (cpufreq_thermal_control_enabled(cpufreq_driver))
policy->cdev = of_cpufreq_cooling_register(policy);

Expand Down
3 changes: 0 additions & 3 deletions include/linux/cpufreq.h
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,6 @@ struct cpufreq_driver {
int (*suspend)(struct cpufreq_policy *policy);
int (*resume)(struct cpufreq_policy *policy);

/* Will be called after the driver is fully initialized */
void (*ready)(struct cpufreq_policy *policy);

struct freq_attr **attr;

/* platform specific boost support code */
Expand Down

0 comments on commit 4bf8e58

Please sign in to comment.