diff options
| author | 2017-06-13 23:05:45 +1000 | |
|---|---|---|
| committer | 2017-06-19 19:46:26 +1000 | |
| commit | 2201f994a5742c03e660623c385fd6897dd1fa2f (patch) | |
| tree | 92d14aa455d4b11e0dac5eebae8f7a65ae0d9837 /arch/powerpc/include/asm/hw_irq.h | |
| parent | drivers/watchdog/Kconfig: Update CONFIG_WATCHDOG_RTAS dependencies (diff) | |
| download | linux-dev-2201f994a5742c03e660623c385fd6897dd1fa2f.tar.xz linux-dev-2201f994a5742c03e660623c385fd6897dd1fa2f.zip | |
powerpc/64s/idle: Move soft interrupt mask logic into C code
This simplifies the asm and fixes irq-off tracing over sleep
instructions.
Also move powersave_nap check for POWER8 into C code, and move
PSSCR register value calculation for POWER9 into C.
Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/hw_irq.h')
| -rw-r--r-- | arch/powerpc/include/asm/hw_irq.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/hw_irq.h b/arch/powerpc/include/asm/hw_irq.h index eba60416536e..f06112cf8734 100644 --- a/arch/powerpc/include/asm/hw_irq.h +++ b/arch/powerpc/include/asm/hw_irq.h @@ -129,6 +129,9 @@ static inline bool arch_irq_disabled_regs(struct pt_regs *regs) } extern bool prep_irq_for_idle(void); +extern bool prep_irq_for_idle_irqsoff(void); + +#define fini_irq_for_idle_irqsoff() trace_hardirqs_off(); extern void force_external_irq_replay(void); |
