]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: parse cpu capacity-dmips-mhz from DT
authorJuri Lelli <juri.lelli@arm.com>
Mon, 17 Oct 2016 15:46:45 +0000 (16:46 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 7 Nov 2016 18:15:03 +0000 (18:15 +0000)
commit8a6bdac646bdcdd5aa21bcb819c72924b99e51f5
treeb52b66bce99af25b770000fc7bbdaa0d246fdcb7
parent0c905638c8ae376ab5ff5a8aaac4f94f6eb7754c
arm64: 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. Also, store such information
using per CPU variables, as we do for arm.

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.

Cc: Will Deacon <will.deacon@arm.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Juri Lelli <juri.lelli@arm.com>
Acked-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/topology.c