[PATCHv2 09/12] arm64: psci: factor invocation code to drivers
Hanjun Guo
hanjun.guo at linaro.org
Tue May 19 01:46:12 PDT 2015
On 2015年05月18日 18:38, Mark Rutland wrote:
> To enable sharing with arm, move the core PSCI framework code to
> drivers/firmware. This results in a minor gain in lines of code, but
> this will quickly be amortised by the removal of code currently
> duplicated in arch/arm.
>
> Signed-off-by: Mark Rutland <mark.rutland at arm.com>
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Cc: Lorenzo Pieralisi <lorenzo.pieralisi at arm.com>
> Cc: Will Deacon <will.deacon at arm.com>
> ---
> arch/arm64/Kconfig | 1 +
> arch/arm64/include/asm/psci.h | 27 ----
> arch/arm64/kernel/psci.c | 354 +---------------------------------------
> arch/arm64/kernel/setup.c | 2 +-
> drivers/firmware/Kconfig | 3 +
> drivers/firmware/Makefile | 1 +
> drivers/firmware/psci.c | 363 ++++++++++++++++++++++++++++++++++++++++++
> include/linux/psci.h | 51 ++++++
> 8 files changed, 422 insertions(+), 380 deletions(-)
> delete mode 100644 arch/arm64/include/asm/psci.h
> create mode 100644 drivers/firmware/psci.c
> create mode 100644 include/linux/psci.h
Reviewed-by: Hanjun Guo <hanjun.guo at linaro.org>
Thanks
Hanjun
More information about the linux-arm-kernel
mailing list