diff options
author | Marc Zyngier <maz@kernel.org> | 2021-06-15 14:12:24 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-06-17 20:00:39 +0300 |
commit | 8848f0665b3cd4fbb3107b384f5205380c90634d (patch) | |
tree | 8ed2fed5b0d39e991303e31f1330ecb7a05fa047 /arch/arm | |
parent | c4681547bcce777daf576925a966ffa824edd09d (diff) | |
download | linux-8848f0665b3cd4fbb3107b384f5205380c90634d.tar.xz |
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>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/include/asm/cpuidle.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/include/asm/cpuidle.h b/arch/arm/include/asm/cpuidle.h index 0d67ed682e07..dc8f53f1a219 100644 --- a/arch/arm/include/asm/cpuidle.h +++ b/arch/arm/include/asm/cpuidle.h @@ -49,4 +49,9 @@ extern int arm_cpuidle_suspend(int index); extern int arm_cpuidle_init(int cpu); +struct arm_cpuidle_irq_context { }; + +#define arm_cpuidle_save_irq_context(c) (void)c +#define arm_cpuidle_restore_irq_context(c) (void)c + #endif |