2022-06-06 04:35:23

by Jingyu Wang

[permalink] [raw]
Subject: [PATCH] printk: change type of cpu_possible_bits to __cpu_possible_mask

1.type of cpu_possible_bits is changed,refer to commit c4c54dd1caf1
("kernel/cpu.c: change type of cpu_possible_bits and friends").
2.set_cpu_possible() before setup_arch().

Signed-off-by: jingyuwang <[email protected]>
---
kernel/printk/printk.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index ea3dd55709e7..25670186d12e 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -1144,8 +1144,8 @@ static void __init log_buf_add_cpu(void)
unsigned int cpu_extra;

/*
- * archs should set up cpu_possible_bits properly with
- * set_cpu_possible() after setup_arch() but just in
+ * archs should set up __cpu_possible_mask properly with
+ * set_cpu_possible() before setup_arch() but just in
* case lets ensure this is valid.
*/
if (num_possible_cpus() == 1)
--
2.34.1