Skip to content

Commit 0156338

Browse files
tobluxIngo Molnar
authored andcommitted
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
1 parent 0ad2507 commit 0156338

File tree

1 file changed

+2
-1
lines changed
  • arch/x86/kernel/apic

1 file changed

+2
-1
lines changed

arch/x86/kernel/apic/ipi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <linux/cpumask.h>
44
#include <linux/delay.h>
55
#include <linux/smp.h>
6+
#include <linux/string_choices.h>
67

78
#include <asm/io_apic.h>
89

@@ -23,7 +24,7 @@ __setup("no_ipi_broadcast=", apic_ipi_shorthand);
2324
static int __init print_ipi_mode(void)
2425
{
2526
pr_info("IPI shorthand broadcast: %s\n",
26-
apic_ipi_shorthand_off ? "disabled" : "enabled");
27+
str_disabled_enabled(apic_ipi_shorthand_off));
2728
return 0;
2829
}
2930
late_initcall(print_ipi_mode);

0 commit comments

Comments
 (0)