aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorSohil Mehta <sohil.mehta@intel.com>2025-03-27 23:46:23 +0000
committerIngo Molnar <mingo@kernel.org>2025-04-01 22:26:01 +0200
commit4a8fba4be879251fa010d248c179efbd42ec667d (patch)
treeaf5e312ab9ac336bfb55a86f37a501a7473fbb69 /scripts/gdb/linux/utils.py
parentx86/nmi: Consolidate NMI panic variables (diff)
downloadlinux-rng-4a8fba4be879251fa010d248c179efbd42ec667d.tar.xz
linux-rng-4a8fba4be879251fa010d248c179efbd42ec667d.zip
x86/nmi: Use a macro to initialize NMI descriptors
The NMI descriptors for each NMI type are stored in an array. However, they are currently initialized using raw numbers, which makes it difficult to understand the code. Introduce a macro to initialize the NMI descriptors using the NMI type enum values to make the code more readable. No functional change intended. 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-4-sohil.mehta@intel.com
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions