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

Andreas Hindborg
2025-11-04T12:15:49Z

Lyude Paul <lyude@redhat.com> writes:

> From: Joel Fernandes <joelagnelf@nvidia.com>
>
> 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@google.com>
> Signed-off-by: Lyude Paul <lyude@redhat.com>

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

Best regards,
Andreas Hindborg