arm64: topology: Provide relative power numbers for cores
authorMark Brown <broonie@linaro.org>
Fri, 2 May 2014 20:38:32 +0000 (13:38 -0700)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 12 May 2014 11:02:29 +0000 (12:02 +0100)
commite1326e784ecf523f7aee73b98d909ab942a70cee
tree92bef1c5e02816b2d99f9e81fa8f553878ee50b7
parent55b4e138e5eaf609a57b291f03bb9e03de39fadc
arm64: topology: Provide relative power numbers for cores

Provide performance numbers to the scheduler to help it fill the cores in
the system on big.LITTLE systems. With the current scheduler this may
perform poorly for applications that try to do OpenMP style work over all
cores but should help for more common workloads. The current 32 bit ARM
implementation provides a similar estimate so this helps ensure that
work to improve big.LITTLE systems on ARMv7 systems performs similarly
on ARMv8 systems.

The power numbers are the same as for ARMv7 since it seems that the
expected differential between the big and little cores is very similar on
both ARMv7 and ARMv8.  In both ARMv7 and ARMv8 cases the numbers were
based on the published DMIPS numbers.

These numbers are just an initial and basic approximation for use with
the current scheduler, it is likely that both experience with silicon
and ongoing work on improving the scheduler will lead to further tuning
or will tune automatically at runtime and so make the specific choice of
numbers here less critical.

Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/kernel/topology.c