Subject: [PATCHv2 09/12] arm64: psci: factor invocation code to drivers

From: [email-masked] (Hanjun Guo)
Date: Tue, 19 May 2015 16:46:12 +0800

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 <[email-masked]>
> Cc: Catalin Marinas <[email-masked]>
> Cc: Lorenzo Pieralisi <[email-masked]>
> Cc: Will Deacon <[email-masked]>
> ---
>   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 <[email-masked]>

Thanks
Hanjun