Re: [PATCH 6/9] x86/nmi: Improve and relocate NMI handler comments
From: Huang, Kai
Date: Mon Mar 31 2025 - 21:03:53 EST
On Thu, 2025-03-27 at 23:46 +0000, Mehta, Sohil wrote:
> Some of the comments in the default NMI handling code are out of place
> or inadequate. Move them to the appropriate locations and update them as
> needed.
>
> Move the comment related to CPU-specific NMIs closer to the actual code.
> Also, add more details about how back-to-back NMIs are detected since
> that isn't immediately obvious.
>
> Opportunistically, replace an #ifdef section in the vicinity with an
> IS_ENABLED() check to make the code easier to read.
>
> Signed-off-by: Sohil Mehta <sohil.mehta@xxxxxxxxx>
Acked-by: Kai Huang <kai.huang@xxxxxxxxx>