]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/nmi: Consolidate NMI panic variables
authorSohil Mehta <sohil.mehta@intel.com>
Thu, 27 Mar 2025 23:46:22 +0000 (23:46 +0000)
committerIngo Molnar <mingo@kernel.org>
Tue, 1 Apr 2025 20:25:56 +0000 (22:25 +0200)
commit78a0323506f01e8017a5826cd7e91951c13184fa
tree8312443b3f2a60a6da2c1308c5cc5e71c0f8dea2
parent2e016da1cbbd013368095270c040e065678c38f7
x86/nmi: Consolidate NMI panic variables

Commit:

  c305a4e98378 ("x86: Move sysctls into arch/x86")

recently moved the sysctl handling of panic_on_unrecovered_nmi and
panic_on_io_nmi to x86-specific code. These variables no longer need to
be declared in the generic header file.

Relocate the variable definitions and declarations closer to where they
are used. This makes all the NMI panic options consistent and easier to
track.

[ mingo: Fixed up the SHA1 of the commit reference. ]

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>
Cc: Joel Granados <joel.granados@kernel.org>
Link: https://lore.kernel.org/r/20250327234629.3953536-3-sohil.mehta@intel.com
arch/x86/include/asm/nmi.h
arch/x86/kernel/dumpstack.c
arch/x86/kernel/nmi.c
include/linux/panic.h