x86/nmi: Fix comment in unknown_nmi_error()
authorSohil Mehta <sohil.mehta@intel.com>
Thu, 27 Mar 2025 23:46:25 +0000 (23:46 +0000)
committerIngo Molnar <mingo@kernel.org>
Tue, 1 Apr 2025 20:26:11 +0000 (22:26 +0200)
commitb4bc3144c1eca9107f45018000a1e68bfd308d8c
tree45994e15e5347a6a2285727859657daf17b805d7
parent6325f947014644ff39e5902afa48238af8f92e0e
x86/nmi: Fix comment in unknown_nmi_error()

The comment in unknown_nmi_error() is incorrect and misleading. There
is no longer a restriction on having a single Unknown NMI handler. Also,
nmi_handle() never used the 'b2b' parameter.

The commits that made the comment outdated are:

  0d443b70cc92 ("x86/platform: Remove warning message for duplicate NMI handlers")
  bf9f2ee28d47 ("x86/nmi: Remove the 'b2b' parameter from nmi_handle()")

Remove the old comment and update it to reflect the current logic.

Signed-off-by: Sohil Mehta <sohil.mehta@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-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-6-sohil.mehta@intel.com
arch/x86/kernel/nmi.c