ARM: 8622/3: add sysfs cpu_capacity attribute
authorJuri Lelli <juri.lelli@arm.com>
Sun, 6 Nov 2016 00:34:31 +0000 (01:34 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 22 Nov 2016 11:45:08 +0000 (11:45 +0000)
commit7e5930aaef5d4c8664ce4a36b05c63e8b25c1f3f
treee914605c839604608c6095c7a71438bffe3f75be
parent06073ee26775809f949823ae18a3affd5f376ee0
ARM: 8622/3: add sysfs cpu_capacity attribute

Add a sysfs cpu_capacity attribute with which it is possible to read and
write (thus over-writing default values) CPUs capacity. This might be
useful in situations where values needs changing after boot.

The new attribute shows up as:

 /sys/devices/system/cpu/cpu*/cpu_capacity

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