[RFC PATCH 16/36] arm64: cpuidle: use new helpers to bypass interrupt priority masking

Jinjie Ruan ruanjinjie at huawei.com
Wed Jul 22 01:39:54 PDT 2026



On 7/14/2026 8:51 PM, Vladimir Murzin wrote:
> On 7/13/26 09:28, Jinjie Ruan wrote:
>>> diff --git a/arch/arm64/include/asm/cpuidle.h b/arch/arm64/include/asm/cpuidle.h
>>> index 2047713e097d..0c7ccdaf1832 100644
>>> --- a/arch/arm64/include/asm/cpuidle.h
>>> +++ b/arch/arm64/include/asm/cpuidle.h
>>> @@ -5,22 +5,17 @@
>>>  #include <asm/proc-fns.h>
>>>  
>>>  #ifdef CONFIG_ARM64_PSEUDO_NMI
>>> -#include <asm/arch_gicv3.h>
>>> +#include <asm/interrupts/masking.h>
>>>  
>>>  struct arm_cpuidle_irq_context {
>>> -	unsigned long pmr;
>>> -	unsigned long daif_bits;
>>> +	arm64_exc_hwstates_t arm64_context;
>> Why not directly replace the arm_cpuidle_irq_context structure with
>> arm64_exc_hwstates_t?
> 
> struct arm_cpuidle_irq_context is used by psci_cpu_suspend_enter().
> Since that function is shared between arm64 and arm32, we have to
> keep it for now.

Make sense.

> 
> Cheers
> Vladimir
> 




More information about the linux-arm-kernel mailing list