Skip to content

Commit 10378a3

Browse files
Zhao Kepalmer-dabbelt
authored andcommitted
Use bool value in set_cpu_online()
The declaration of set_cpu_online() takes a bool value. So replace int here to make it consistent with the declaration. Signed-off-by: Zhao Ke <[email protected]> Reviewed-by: Charlie Jenkins <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent f8ea6ab commit 10378a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/kernel/smpboot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ asmlinkage __visible void smp_callin(void)
224224
riscv_ipi_enable();
225225

226226
numa_add_cpu(curr_cpuid);
227-
set_cpu_online(curr_cpuid, 1);
227+
set_cpu_online(curr_cpuid, true);
228228

229229
if (has_vector()) {
230230
if (riscv_v_setup_vsize())

0 commit comments

Comments
 (0)