arm64: Add cpuidle context save/restore helpers
authorMarc Zyngier <maz@kernel.org>
Tue, 15 Jun 2021 11:12:24 +0000 (12:12 +0100)
committerWill Deacon <will@kernel.org>
Thu, 17 Jun 2021 17:00:39 +0000 (18:00 +0100)
commit8848f0665b3cd4fbb3107b384f5205380c90634d
tree8ed2fed5b0d39e991303e31f1330ecb7a05fa047
parentc4681547bcce777daf576925a966ffa824edd09d
arm64: Add cpuidle context save/restore helpers

As we need to start doing some additional work on all idle
paths, let's introduce a set of macros that will perform
the work related to the GICv3 pseudo-NMI idle entry exit.

Stubs are introduced to 32bit ARM for compatibility.
As these helpers are currently unused, there is no functional
change.

Tested-by: Valentin Schneider <valentin.schneider@arm.com>
Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210615111227.2454465-2-maz@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm/include/asm/cpuidle.h
arch/arm64/include/asm/cpuidle.h