Use bool value in set_cpu_online()
authorZhao Ke <ke.zhao@shingroup.cn>
Mon, 18 Mar 2024 06:54:04 +0000 (14:54 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 22 May 2024 23:12:52 +0000 (16:12 -0700)
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 <ke.zhao@shingroup.cn>
Reviewed-by: Charlie Jenkins <charlie@rivosinc.com>
Link: https://lore.kernel.org/r/20240318065404.123668-1-ke.zhao@shingroup.cn
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/smpboot.c

index 4b3c50d..1319b29 100644 (file)
@@ -224,7 +224,7 @@ asmlinkage __visible void smp_callin(void)
        riscv_ipi_enable();
 
        numa_add_cpu(curr_cpuid);
-       set_cpu_online(curr_cpuid, 1);
+       set_cpu_online(curr_cpuid, true);
 
        if (has_vector()) {
                if (riscv_v_setup_vsize())