x86/nmi: Remove an unnecessary IS_ENABLED(CONFIG_SMP)
authorXin Li (Intel) <xin@zytor.com>
Thu, 1 Feb 2024 09:46:04 +0000 (01:46 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 27 Feb 2024 21:00:50 +0000 (22:00 +0100)
commit47403a4b49767f1d533e4dc5f5cf5cc957f22a5e
tree81701795c6a6742162bcb18c23fca6bcc8c81d1c
parente37ae6433a5eeb5fb66e3de4b97cdda68ee2c5e8
x86/nmi: Remove an unnecessary IS_ENABLED(CONFIG_SMP)

IS_ENABLED(CONFIG_SMP) is unnecessary here: smp_processor_id() should
always return zero on UP, and arch_cpu_is_offline() reduces to
!(cpu == 0), so this is a statically false condition on UP.

Suggested-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Signed-off-by: Xin Li (Intel) <xin@zytor.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240201094604.3918141-1-xin@zytor.com
arch/x86/kernel/nmi.c