cpufreq: Remove CPUFREQ_START notifier event
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 5 Jan 2017 06:04:31 +0000 (11:34 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 3 Feb 2017 23:05:30 +0000 (00:05 +0100)
Its not used anymore, remove it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c
drivers/cpufreq/ppc_cbe_cpufreq_pmi.c
include/linux/cpufreq.h

index 53268bebdf1e9656809a971ca5e2e5022cdb4361..408479540566678924a60829c9808ca4af8f298f 100644 (file)
@@ -1246,9 +1246,6 @@ static int cpufreq_online(unsigned int cpu)
                write_unlock_irqrestore(&cpufreq_driver_lock, flags);
        }
 
-       blocking_notifier_call_chain(&cpufreq_policy_notifier_list,
-                                    CPUFREQ_START, policy);
-
        ret = cpufreq_init_policy(policy);
        if (ret) {
                pr_err("%s: Failed to initialize policy for cpu: %d (%d)\n",
index dc112481a40841e67fdc5c9ffbed0effc5d54ce1..eeaa92251512d45bfdfb8b1313d0165818b32aed 100644 (file)
@@ -100,9 +100,6 @@ static int pmi_notifier(struct notifier_block *nb,
        /* Should this really be called for CPUFREQ_ADJUST and CPUFREQ_NOTIFY
         * policy events?)
         */
-       if (event == CPUFREQ_START)
-               return 0;
-
        node = cbe_cpu_to_node(policy->cpu);
 
        pr_debug("got notified, event=%lu, node=%u\n", event, node);
index a597bb825ae17a28add80e38e093a9808a9d9135..b07838b1fc60892f15ecac9ce781c51d0e201c04 100644 (file)
@@ -415,7 +415,6 @@ static inline void cpufreq_resume(void) {}
 /* Policy Notifiers  */
 #define CPUFREQ_ADJUST                 (0)
 #define CPUFREQ_NOTIFY                 (1)
-#define CPUFREQ_START                  (2)
 
 #ifdef CONFIG_CPU_FREQ
 int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list);