diff options
author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-02-09 22:03:32 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-02-21 16:54:22 +0100 |
commit | 0156338a18eba7ee229e59c8928c7056e9753c61 (patch) | |
tree | c1452b2b27a182611540e796138b2aba21dad154 | |
parent | 0ad2507d5d93f39619fc42372c347d6006b64319 (diff) |
x86/apic: Use str_disabled_enabled() helper in print_ipi_mode()
Remove hard-coded strings by using the str_disabled_enabled() helper.
No change in functionality intended.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20250209210333.5666-2-thorsten.blum@linux.dev
-rw-r--r-- | arch/x86/kernel/apic/ipi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic/ipi.c b/arch/x86/kernel/apic/ipi.c index 5da693d633b7..942168da7195 100644 --- a/arch/x86/kernel/apic/ipi.c +++ b/arch/x86/kernel/apic/ipi.c @@ -3,6 +3,7 @@ #include <linux/cpumask.h> #include <linux/delay.h> #include <linux/smp.h> +#include <linux/string_choices.h> #include <asm/io_apic.h> @@ -23,7 +24,7 @@ __setup("no_ipi_broadcast=", apic_ipi_shorthand); static int __init print_ipi_mode(void) { pr_info("IPI shorthand broadcast: %s\n", - apic_ipi_shorthand_off ? "disabled" : "enabled"); + str_disabled_enabled(apic_ipi_shorthand_off)); return 0; } late_initcall(print_ipi_mode); |