]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/apic: Use str_disabled_enabled() helper in print_ipi_mode()
authorThorsten Blum <thorsten.blum@linux.dev>
Sun, 9 Feb 2025 21:03:32 +0000 (22:03 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 21 Feb 2025 15:54:22 +0000 (16:54 +0100)
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
arch/x86/kernel/apic/ipi.c

index 5da693d633b7801599cedddbd05c8cbb9689ac43..942168da719535ee2b957e149c9b51875f2383f2 100644 (file)
@@ -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);