Re: [PATCH v13 02/17] preempt: Reduce NMI_MASK to single bit and restore HARDIRQ_BITS

From: Andreas Hindborg

Date: Tue Nov 04 2025 - 07:18:35 EST


Lyude Paul <lyude@xxxxxxxxxx> writes:

> From: Joel Fernandes <joelagnelf@xxxxxxxxxx>
>
> Now that NMI nesting is tracked in a separate per-CPU variable
> (nmi_nesting), we no longer need multiple bits in preempt_count
> for NMI tracking. Reduce NMI_BITS from 3 to 1, using it only to
> detect if we're in an NMI.
>
> Signed-off-by: Joel Fernandes <joelaf@xxxxxxxxxx>
> Signed-off-by: Lyude Paul <lyude@xxxxxxxxxx>

The commit summary is mentioning HARDIRQ_BITS, but I don't think that
change is part of this commit.


Best regards,
Andreas Hindborg