cpufreq: rockchip: limit frequency when reboot
[firefly-linux-kernel-4.4.55.git] / drivers / cpufreq / arm_big_little.h
index 79b2ce17884dd9cc645cb5a34c33e90290bba10a..b88889d9387ed5d5d3183c6d19b7fc2c8208d230 100644 (file)
 
 struct cpufreq_arm_bL_ops {
        char name[CPUFREQ_NAME_LEN];
-       int (*get_transition_latency)(struct device *cpu_dev);
 
        /*
         * This must set opp table for cpu_dev in a similar way as done by
-        * of_init_opp_table().
+        * dev_pm_opp_of_add_table().
         */
        int (*init_opp_table)(struct device *cpu_dev);
-};
 
-static inline int cpu_to_cluster(int cpu)
-{
-       return topology_physical_package_id(cpu);
-}
+       /* Optional */
+       int (*get_transition_latency)(struct device *cpu_dev);
+       void (*free_opp_table)(struct device *cpu_dev);
+};
 
 int bL_cpufreq_register(struct cpufreq_arm_bL_ops *ops);
 void bL_cpufreq_unregister(struct cpufreq_arm_bL_ops *ops);