arm64: add sysfs cpu_capacity attribute
authorJuri Lelli <juri.lelli@arm.com>
Thu, 3 Nov 2016 05:40:18 +0000 (05:40 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 7 Nov 2016 18:15:03 +0000 (18:15 +0000)
commitbe8f185d8af4dbd450023a42a48c6faa8cbcdfe6
tree0ea5c66f30a48c71ac906b4bc0fd9f96c06b1371
parent7202bde8b7aea7c914e33c7bc2dfb145587f1bdc
arm64: 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

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>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/topology.c