diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-10-30 15:44:40 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-10-31 00:10:53 +0100 |
commit | e79a23c5b9870b7f80425793abeb10e57f7486d4 (patch) | |
tree | c957d3a1c803ba71fc030b016e902f2bee6d81af /drivers/cpufreq/arm_big_little.h | |
parent | 9e941b6f42cc2b0d53011d62d639140c84116f59 (diff) | |
download | talos-obmc-linux-e79a23c5b9870b7f80425793abeb10e57f7486d4.tar.gz talos-obmc-linux-e79a23c5b9870b7f80425793abeb10e57f7486d4.zip |
cpufreq: arm_big_little: add in-kernel switching (IKS) support
This patch adds IKS (In Kernel Switcher) support to cpufreq driver.
This creates a combined freq table for A7-A15 CPU pairs. A7 frequencies
are virtualized and scaled down to half the actual frequencies to
approximate a linear scale across the combined A7+A15 range. When the
requested frequency change crosses the A7-A15 boundary a cluster switch
is invoked.
Based on earlier work from Sudeep KarkadaNagesha.
Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/arm_big_little.h')
-rw-r--r-- | drivers/cpufreq/arm_big_little.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/cpufreq/arm_big_little.h b/drivers/cpufreq/arm_big_little.h index 79b2ce17884d..70f18fc12d4a 100644 --- a/drivers/cpufreq/arm_big_little.h +++ b/drivers/cpufreq/arm_big_little.h @@ -34,11 +34,6 @@ 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); |