Message ID | 20241108162225.19401-1-18001123162@163.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | proc/softirqs: change softirqs info from possile_cpu to online_cpu | expand |
diff --git a/fs/proc/softirqs.c b/fs/proc/softirqs.c index 04bb29721419..01698b8f3898 100644 --- a/fs/proc/softirqs.c +++ b/fs/proc/softirqs.c @@ -13,13 +13,13 @@ static int show_softirqs(struct seq_file *p, void *v) int i, j; seq_puts(p, " "); - for_each_possible_cpu(i) + for_each_online_cpu(i) seq_printf(p, "CPU%-8d", i); seq_putc(p, '\n'); for (i = 0; i < NR_SOFTIRQS; i++) { seq_printf(p, "%12s:", softirq_to_name[i]); - for_each_possible_cpu(j) + for_each_online_cpu(j) seq_put_decimal_ull_width(p, " ", kstat_softirqs_cpu(i, j), 10); seq_putc(p, '\n'); }