ARM: 8621/3: parse cpu capacity-dmips-mhz from DT
authorJuri Lelli <juri.lelli@arm.com>
Sun, 6 Nov 2016 00:34:15 +0000 (01:34 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 22 Nov 2016 11:45:06 +0000 (11:45 +0000)
commit06073ee26775809f949823ae18a3affd5f376ee0
tree79ad04fb1e99244e4d1cac7197ef162895729f96
parent01bf92788ee701d39064ea42874b0eb37da67716
ARM: 8621/3: parse cpu capacity-dmips-mhz from DT

With the introduction of cpu capacity-dmips-mhz bindings, CPU capacities
can now be calculated from values extracted from DT and information
coming from cpufreq. Add parsing of DT information at boot time, and
complement it with cpufreq information. We keep code that can produce
same information, based on different DT properties and hard-coded
values, as fall-back for backward compatibility.

Caveat: the information provided by this patch will start to be used in
the future. We need to #define arch_scale_cpu_capacity to something
provided in arch, so that scheduler's default implementation (which gets
used if arch_scale_cpu_capacity is not defined) is overwritten.

Signed-off-by: Juri Lelli <juri.lelli@arm.com>
Acked-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/topology.c