summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/arm_big_little.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cpufreq/arm_big_little.h')
-rw-r--r--drivers/cpufreq/arm_big_little.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/cpufreq/arm_big_little.h b/drivers/cpufreq/arm_big_little.h
index 70f18fc12d4a..79b2ce17884d 100644
--- a/drivers/cpufreq/arm_big_little.h
+++ b/drivers/cpufreq/arm_big_little.h
@@ -34,6 +34,11 @@ struct cpufreq_arm_bL_ops {
int (*init_opp_table)(struct device *cpu_dev);
};
+static inline int cpu_to_cluster(int cpu)
+{
+ return topology_physical_package_id(cpu);
+}
+
int bL_cpufreq_register(struct cpufreq_arm_bL_ops *ops);
void bL_cpufreq_unregister(struct cpufreq_arm_bL_ops *ops);