Skip to content

Commit 638dce2

Browse files
committed
rcu/nocb: Add CPU number to CPU-{,de}offload failure messages
Offline CPUs cannot be offloaded or deoffloaded. Any attempt to offload or deoffload an offline CPU causes a message to be printed on the console, which is good, but this message does not contain the CPU number, which is bad. Such a CPU number can be helpful when debugging, as it gives a clear indication that the CPU in question is in fact offline. This commit therefore adds the CPU number to the CPU-{,de}offload failure messages. Cc: Frederic Weisbecker <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 5334da2 commit 638dce2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/rcu/tree_nocb.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ int rcu_nocb_cpu_deoffload(int cpu)
11111111
if (!ret)
11121112
cpumask_clear_cpu(cpu, rcu_nocb_mask);
11131113
} else {
1114-
pr_info("NOCB: Can't CB-deoffload an offline CPU\n");
1114+
pr_info("NOCB: Cannot CB-deoffload offline CPU %d\n", rdp->cpu);
11151115
ret = -EINVAL;
11161116
}
11171117
}
@@ -1196,7 +1196,7 @@ int rcu_nocb_cpu_offload(int cpu)
11961196
if (!ret)
11971197
cpumask_set_cpu(cpu, rcu_nocb_mask);
11981198
} else {
1199-
pr_info("NOCB: Can't CB-offload an offline CPU\n");
1199+
pr_info("NOCB: Cannot CB-offload offline CPU %d\n", rdp->cpu);
12001200
ret = -EINVAL;
12011201
}
12021202
}

0 commit comments

Comments
 (0)