Thread (126 messages) 126 messages, 3 authors, 2h ago

Re: [RFC PATCH 10/36] arm64: irqflags: save and use both DAIF and PMR

From: Vladimir Murzin <hidden>
Date: 2026-07-17 10:30:33

On 7/10/26 09:47, Jinjie Ruan wrote:
quoted
-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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help