]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: 7011/1: Add ARM cpu topology definition
authorVincent Guittot <vincent.guittot@linaro.org>
Mon, 8 Aug 2011 12:21:59 +0000 (13:21 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 8 Aug 2011 12:40:20 +0000 (13:40 +0100)
commitad5d6766ad20d2ab42d3e8717b3ddbb655565d6b
treef6f1b1140b1cc7601bc6c0a88ee38241f1ace08b
parent322a8b034003c0d46d39af85bf24fee27b902f48
ARM: 7011/1: Add ARM cpu topology definition

The affinity between ARM processors is defined in the MPIDR register.
We can identify which processors are in the same cluster,
and which ones have performance interdependency. We can define the
cpu topology of ARM platform, that is then used by sched_mc and sched_smt.

The default state of sched_mc and sched_smt config is disable.
When enabled, the behavior of the scheduler can be modified with
sched_mc_power_savings and sched_smt_power_savings sysfs interfaces.

Changes since v4 :
*  Remove unnecessary parentheses and blank lines

Changes since v3 :
* Update the format of printk message
* Remove blank line

Changes since v2 :
* Update the commit message and some comments

Changes since v1 :
* Update the commit message
* Add read_cpuid_mpidr in arch/arm/include/asm/cputype.h
* Modify header of arch/arm/kernel/topology.c
* Modify tests and manipulation of MPIDR's bitfields
* Modify the place and dependancy of the config
* Modify Noop functions

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig
arch/arm/include/asm/cputype.h
arch/arm/include/asm/topology.h
arch/arm/kernel/Makefile
arch/arm/kernel/smp.c
arch/arm/kernel/topology.c [new file with mode: 0644]