[RFC PATCH 10/36] arm64: irqflags: save and use both DAIF and PMR
Vladimir Murzin
vladimir.murzin at arm.com
Fri Jul 17 03:30:14 PDT 2026
On 7/10/26 09:47, Jinjie Ruan wrote:
>> -static __always_inline bool __daif_irqs_disabled(void)
>> -{
>> - return __daif_irqs_disabled_flags(__daif_local_save_flags());
>> -}
>> + if (system_uses_irq_prio_masking() && hwstate.pmr < GIC_PRIO_IRQON)
> This concept of being less than or greater than is not easy to understand.
IIUC, the original idea behind using less than and greater than
comparisons was to provide a safety net while we transition to the new
implementation in this patch series. However, after taking another
look, it seems we do not require them. More on that in my reply to
your other question about this code...
Thanks
Vladimir
More information about the linux-arm-kernel
mailing list