Skip to content
Unverified Commit b2f8cfa7 authored by Palmer Dabbelt's avatar Palmer Dabbelt
Browse files

RISC-V: Rename riscv_of_processor_hart to riscv_of_processor_hartid



It's a bit confusing exactly what this function does: it actually
returns the hartid of an OF processor node, failing with -1 on invalid
nodes.  I've changed the name to _hartid() in order to make that a bit
more clear, as well as adding a comment.

Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
[Atish: code comment formatting update]
Signed-off-by: default avatarAtish Patra <atish.patra@wdc.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
parent 9639a443
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment