]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Do not use cpumask data structure for hartid bitmap
authorAtish Patra <atishp@rivosinc.com>
Thu, 20 Jan 2022 09:09:18 +0000 (01:09 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 20 Jan 2022 17:27:22 +0000 (09:27 -0800)
commitdb1f3f9a9b8c05f013edddac8ae3517cdfab252b
tree545d865d622b096c9c193adba2ebd64b3d79c76a
parente57b14b4666e6109089ea471d33035b2092e6f97
RISC-V: Do not use cpumask data structure for hartid bitmap

Currently, SBI APIs accept a hartmask that is generated from struct
cpumask. Cpumask data structure can hold upto NR_CPUs value. Thus, it
is not the correct data structure for hartids as it can be higher
than NR_CPUs for platforms with sparse or discontguous hartids.

Remove all association between hartid mask and struct cpumask.

Reviewed-by: Anup Patel <anup@brainfault.org> (For Linux RISC-V changes)
Acked-by: Anup Patel <anup@brainfault.org> (For KVM RISC-V changes)
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/sbi.h
arch/riscv/include/asm/smp.h
arch/riscv/kernel/sbi.c
arch/riscv/kernel/setup.c
arch/riscv/kernel/smpboot.c
arch/riscv/kvm/mmu.c
arch/riscv/kvm/vcpu_sbi_replace.c
arch/riscv/kvm/vcpu_sbi_v01.c
arch/riscv/kvm/vmid.c
arch/riscv/mm/cacheflush.c
arch/riscv/mm/tlbflush.c