diff options
| author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-01-06 10:39:10 -0500 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-01-23 17:06:44 -0500 |
| commit | d9f354460db8b58a8395936d323b4ca6e8428b9d (patch) | |
| tree | f379015be7cceb23a73d7fe0a28464e5271ad0db | |
| parent | c92f2125ac5338151bb5c45e371c701e107e3197 (diff) | |
cpufreq: remove CPUFREQ_UPDATE_POLICY_CPU notifications
CPUFREQ_UPDATE_POLICY_CPU notifications were used only from cpufreq-stats which
doesn't use it anymore. Remove them.
This also decrements values of other notification macros defined after
CPUFREQ_UPDATE_POLICY_CPU by 1 to remove gaps. Hopefully all users are using
macro's instead of direct numbers and so they wouldn't break as macro values are
changed now.
Reviewed-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
| -rw-r--r-- | drivers/cpufreq/cpufreq.c | 3 | ||||
| -rw-r--r-- | include/linux/cpufreq.h | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 60ef37d569c5..ca69f42b8e1e 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c | |||
| @@ -1089,9 +1089,6 @@ static int update_policy_cpu(struct cpufreq_policy *policy, unsigned int cpu, | |||
| 1089 | policy->cpu = cpu; | 1089 | policy->cpu = cpu; |
| 1090 | up_write(&policy->rwsem); | 1090 | up_write(&policy->rwsem); |
| 1091 | 1091 | ||
| 1092 | blocking_notifier_call_chain(&cpufreq_policy_notifier_list, | ||
| 1093 | CPUFREQ_UPDATE_POLICY_CPU, policy); | ||
| 1094 | |||
| 1095 | return 0; | 1092 | return 0; |
| 1096 | } | 1093 | } |
| 1097 | 1094 | ||
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 7e1a389b4e92..2ee4888c1f47 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
| @@ -368,9 +368,8 @@ static inline void cpufreq_resume(void) {} | |||
| 368 | #define CPUFREQ_INCOMPATIBLE (1) | 368 | #define CPUFREQ_INCOMPATIBLE (1) |
| 369 | #define CPUFREQ_NOTIFY (2) | 369 | #define CPUFREQ_NOTIFY (2) |
| 370 | #define CPUFREQ_START (3) | 370 | #define CPUFREQ_START (3) |
| 371 | #define CPUFREQ_UPDATE_POLICY_CPU (4) | 371 | #define CPUFREQ_CREATE_POLICY (4) |
| 372 | #define CPUFREQ_CREATE_POLICY (5) | 372 | #define CPUFREQ_REMOVE_POLICY (5) |
| 373 | #define CPUFREQ_REMOVE_POLICY (6) | ||
| 374 | 373 | ||
| 375 | #ifdef CONFIG_CPU_FREQ | 374 | #ifdef CONFIG_CPU_FREQ |
| 376 | int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list); | 375 | int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list); |
