• Atish Patra's avatar
    RISC-V: Do not use cpumask data structure for hartid bitmap · 26fb751c
    Atish Patra authored
    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: default avatarAtish Patra <atishp@rivosinc.com>
    Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
    26fb751c
setup.c 8.1 KB