]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/nmi: Improve and relocate NMI handler comments
authorSohil Mehta <sohil.mehta@intel.com>
Thu, 27 Mar 2025 23:46:26 +0000 (23:46 +0000)
committerIngo Molnar <mingo@kernel.org>
Tue, 1 Apr 2025 20:26:16 +0000 (22:26 +0200)
commit59cddd397accfa92fc36c223e3d532b47fdab841
treefb05ffe2ebe3be54f0f424a3d2144f22d191b4b0
parentb4bc3144c1eca9107f45018000a1e68bfd308d8c
x86/nmi: Improve and relocate NMI handler comments

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@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Kai Huang <kai.huang@intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Nikolay Borisov <nik.borisov@suse.com>
Link: https://lore.kernel.org/r/20250327234629.3953536-7-sohil.mehta@intel.com
arch/x86/kernel/nmi.c