]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
RISC-V: Rename riscv_of_processor_hart to riscv_of_processor_hartid
authorPalmer Dabbelt <palmer@sifive.com>
Tue, 2 Oct 2018 19:15:00 +0000 (12:15 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 23 Oct 2018 00:03:36 +0000 (17:03 -0700)
commitb2f8cfa7ac34202e5fd9551b6507fcd424634c1b
tree7ff1b30055d02863fc69ef3b0295ded9e77d6d6b
parent9639a44394b9859a5576cb36630105733a552bd6
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: Palmer Dabbelt <palmer@sifive.com>
[Atish: code comment formatting update]
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/asm/processor.h
arch/riscv/kernel/cpu.c
arch/riscv/kernel/smpboot.c
drivers/clocksource/riscv_timer.c
drivers/irqchip/irq-sifive-plic.c