]> git.baikalelectronics.ru Git - kernel.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)
commit7919ed9fc56b92afd4cbf0951bab6c5b19eddfae
tree81ad369715ce9a6201d998647577bdc429344169
parent3ed773a9965d2fdc56d9b1d27c02eee1375a6a00
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