]> git.baikalelectronics.ru Git - kernel.git/commit
arm, arm64: factorize common cpu capacity default code
authorJuri Lelli <juri.lelli@arm.com>
Wed, 31 May 2017 16:59:28 +0000 (17:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Jun 2017 10:10:09 +0000 (19:10 +0900)
commit1e3fcf708543da91111f437fba2819ec8c5f99c0
tree98723c186755eed6b067867f0dd80eba352c544e
parent15ef83e1af6fa7db4483c08ec3ca5bbe6a5f4022
arm, arm64: factorize common cpu capacity default code

arm and arm64 share lot of code relative to parsing CPU capacity
information from DT, using that information for appropriate scaling and
exposing a sysfs interface for chaging such values at runtime.

Factorize such code in a common place (driver/base/arch_topology.c) in
preparation for further additions.

Suggested-by: Will Deacon <will.deacon@arm.com>
Suggested-by: Mark Rutland <mark.rutland@arm.com>
Suggested-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Juri Lelli <juri.lelli@arm.com>
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/Kconfig
arch/arm/kernel/topology.c
arch/arm64/Kconfig
arch/arm64/kernel/topology.c
drivers/base/Kconfig
drivers/base/Makefile
drivers/base/arch_topology.c [new file with mode: 0644]