Skip to content

Commit 3e0f897

Browse files
vireshkrafaeljw
authored andcommitted
cpufreq: Remove the ->stop_cpu() driver callback
Now that all users of ->stop_cpu() have been migrated to using other callbacks, drop it from the core. Signed-off-by: Viresh Kumar <[email protected]> [ rjw: Minor edits in the subject and changelog ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 952da0c commit 3e0f897

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

Documentation/cpu-freq/cpu-drivers.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ And optionally
7171
.exit - A pointer to a per-policy cleanup function called during
7272
CPU_POST_DEAD phase of cpu hotplug process.
7373

74-
.stop_cpu - A pointer to a per-policy stop function called during
75-
CPU_DOWN_PREPARE phase of cpu hotplug process.
76-
7774
.suspend - A pointer to a per-policy suspend function which is called
7875
with interrupts disabled and _after_ the governor is stopped for the
7976
policy.

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ CPUfreq核心层注册一个cpufreq_driver结构体。
7676
.exit - 一个指向per-policy清理函数的指针,该函数在cpu热插拔过程的CPU_POST_DEAD
7777
阶段被调用。
7878

79-
.stop_cpu - 一个指向per-policy停止函数的指针,该函数在cpu热插拔过程的CPU_DOWN_PREPARE
80-
阶段被调用。
81-
8279
.suspend - 一个指向per-policy暂停函数的指针,该函数在关中断且在该策略的调节器停止
8380
后被调用。
8481

drivers/cpufreq/cpufreq.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,9 +1606,6 @@ static int cpufreq_offline(unsigned int cpu)
16061606
policy->cdev = NULL;
16071607
}
16081608

1609-
if (cpufreq_driver->stop_cpu)
1610-
cpufreq_driver->stop_cpu(policy);
1611-
16121609
if (has_target())
16131610
cpufreq_exit_governor(policy);
16141611

include/linux/cpufreq.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ struct cpufreq_driver {
371371
int (*online)(struct cpufreq_policy *policy);
372372
int (*offline)(struct cpufreq_policy *policy);
373373
int (*exit)(struct cpufreq_policy *policy);
374-
void (*stop_cpu)(struct cpufreq_policy *policy);
375374
int (*suspend)(struct cpufreq_policy *policy);
376375
int (*resume)(struct cpufreq_policy *policy);
377376

0 commit comments

Comments
 (0)