aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/kernel
diff options
context:
space:
mode:
authorGravatar Zhao Ke <ke.zhao@shingroup.cn> 2024-03-18 14:54:04 +0800
committerGravatar Palmer Dabbelt <palmer@rivosinc.com> 2024-05-22 16:12:52 -0700
commit10378a39ed76b8ee915edaff0939c62d5e3ddb54 (patch)
tree14fd012f0e3a7a7ffdfd60caec110bab40c450dc /arch/riscv/kernel
parentriscv: selftests: Add hwprobe binaries to .gitignore (diff)
downloadlinux-10378a39ed76b8ee915edaff0939c62d5e3ddb54.tar.gz
linux-10378a39ed76b8ee915edaff0939c62d5e3ddb54.tar.bz2
linux-10378a39ed76b8ee915edaff0939c62d5e3ddb54.zip
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 <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>
Diffstat (limited to 'arch/riscv/kernel')
-rw-r--r--arch/riscv/kernel/smpboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/kernel/smpboot.c b/arch/riscv/kernel/smpboot.c
index 4b3c50da48ba..1319b29ce3b5 100644
--- a/arch/riscv/kernel/smpboot.c
+++ b/arch/riscv/kernel/smpboot.c
@@ -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())