]> asedeno.scripts.mit.edu Git - linux.git/commit
RISC-V: Add RISC-V specific arch_match_cpu_phys_id
authorAtish Patra <atish.patra@wdc.com>
Wed, 24 Apr 2019 21:47:58 +0000 (14:47 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 30 Apr 2019 16:47:44 +0000 (09:47 -0700)
commit70114560b2855853126c65cccdc49a33187327d0
tree81ad369715ce9a6201d998647577bdc429344169
parentfd7f744caed82dcfd3a23bce8843836d6e94d584
RISC-V: Add RISC-V specific arch_match_cpu_phys_id

OF/DT core has a hook for architecture specific logical cpuid to hartid
mapping. By implementing this, we can pass the logical cpu id to cpu
node parsing functions.

Fix the instances where logical cpuid is expected as an argument in
of_get_cpu_node.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/cpu.c
arch/riscv/kernel/smp.c