Skip to content

Commit 4bf8e58

Browse files
vireshkrafaeljw
authored andcommitted
cpufreq: Remove ready() callback
This isn't used anymore, get rid of it. Signed-off-by: Viresh Kumar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 9ab0a6c commit 4bf8e58

File tree

4 files changed

+0
-12
lines changed

4 files changed

+0
-12
lines changed

Documentation/cpu-freq/cpu-drivers.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ And optionally
7575
.resume - A pointer to a per-policy resume function which is called
7676
with interrupts disabled and _before_ the governor is started again.
7777

78-
.ready - A pointer to a per-policy ready function which is called after
79-
the policy is fully initialized.
80-
8178
.attr - A pointer to a NULL-terminated list of "struct freq_attr" which
8279
allow to export values to sysfs.
8380

Documentation/translations/zh_CN/cpu-freq/cpu-drivers.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ CPUfreq核心层注册一个cpufreq_driver结构体。
8080
.resume - 一个指向per-policy恢复函数的指针,该函数在关中断且在调节器再一次开始前被
8181
调用。
8282

83-
.ready - 一个指向per-policy准备函数的指针,该函数在策略完全初始化之后被调用。
84-
8583
.attr - 一个指向NULL结尾的"struct freq_attr"列表的指针,该函数允许导出值到
8684
sysfs。
8785

drivers/cpufreq/cpufreq.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,10 +1517,6 @@ static int cpufreq_online(unsigned int cpu)
15171517

15181518
kobject_uevent(&policy->kobj, KOBJ_ADD);
15191519

1520-
/* Callback for handling stuff after policy is ready */
1521-
if (cpufreq_driver->ready)
1522-
cpufreq_driver->ready(policy);
1523-
15241520
if (cpufreq_thermal_control_enabled(cpufreq_driver))
15251521
policy->cdev = of_cpufreq_cooling_register(policy);
15261522

include/linux/cpufreq.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,6 @@ struct cpufreq_driver {
367367
int (*suspend)(struct cpufreq_policy *policy);
368368
int (*resume)(struct cpufreq_policy *policy);
369369

370-
/* Will be called after the driver is fully initialized */
371-
void (*ready)(struct cpufreq_policy *policy);
372-
373370
struct freq_attr **attr;
374371

375372
/* platform specific boost support code */

0 commit comments

Comments
 (0)