We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f45a605 commit c4df159Copy full SHA for c4df159
kernel/smp.c
@@ -25,6 +25,7 @@
25
#include <linux/nmi.h>
26
#include <linux/sched/debug.h>
27
#include <linux/jump_label.h>
28
+#include <linux/string_choices.h>
29
30
#include <trace/events/ipi.h>
31
#define CREATE_TRACE_POINTS
@@ -982,8 +983,7 @@ void __init smp_init(void)
982
983
num_nodes = num_online_nodes();
984
num_cpus = num_online_cpus();
985
pr_info("Brought up %d node%s, %d CPU%s\n",
- num_nodes, (num_nodes > 1 ? "s" : ""),
986
- num_cpus, (num_cpus > 1 ? "s" : ""));
+ num_nodes, str_plural(num_nodes), num_cpus, str_plural(num_cpus));
987
988
/* Any cleanup work */
989
smp_cpus_done(setup_max_cpus);
0 commit comments