ARM: 7463/1: topology: Update cpu_power according to DT information
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 10 Jul 2012 13:13:12 +0000 (14:13 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 12 Jul 2012 19:38:12 +0000 (15:38 -0400)
commit339ca09d7adac80eda8d097ab473c6c23ee86b17
tree6ba3ddf0732b8ffe368edac9f062cb628b8636d6
parentcb75dacb39494164e6b1f7aa747fb639bf18584c
ARM: 7463/1: topology: Update cpu_power according to DT information

Use cpu compatibility field and clock-frequency field of DT to
estimate the capacity of each core of the system and to update
the cpu_power field accordingly.
This patch enables to put more running tasks on big cores than
on LITTLE ones. But this patch doesn't ensure that long running
tasks will run on big cores and short ones on LITTLE cores.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/topology.c