]> 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)
commit78533be870cbc2b5e4a05f9839566e7448886642
tree81ad369715ce9a6201d998647577bdc429344169
parentfe39082d347929f8f943b8cd0edec8ce48a2c700
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