diff options
| author | Sohil Mehta <sohil.mehta@intel.com> | 2025-03-28 02:46:22 +0300 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2025-04-01 23:25:56 +0300 |
| commit | 78a0323506f01e8017a5826cd7e91951c13184fa (patch) | |
| tree | 8312443b3f2a60a6da2c1308c5cc5e71c0f8dea2 /include/linux/panic.h | |
| parent | 2e016da1cbbd013368095270c040e065678c38f7 (diff) | |
| download | linux-78a0323506f01e8017a5826cd7e91951c13184fa.tar.xz | |
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
Diffstat (limited to 'include/linux/panic.h')
| -rw-r--r-- | include/linux/panic.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/panic.h b/include/linux/panic.h index 2494d51707ef..4adc65766935 100644 --- a/include/linux/panic.h +++ b/include/linux/panic.h @@ -20,8 +20,6 @@ extern bool panic_triggering_all_cpu_backtrace; extern int panic_timeout; extern unsigned long panic_print; extern int panic_on_oops; -extern int panic_on_unrecovered_nmi; -extern int panic_on_io_nmi; extern int panic_on_warn; extern unsigned long panic_on_taint; |
