diff options
author | Palmer Dabbelt <palmer@sifive.com> | 2018-10-02 12:15:00 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2018-10-22 17:03:36 -0700 |
commit | b2f8cfa7ac34202e5fd9551b6507fcd424634c1b (patch) | |
tree | 7ff1b30055d02863fc69ef3b0295ded9e77d6d6b /drivers/clocksource | |
parent | 9639a44394b9859a5576cb36630105733a552bd6 (diff) | |
download | blackbird-op-linux-b2f8cfa7ac34202e5fd9551b6507fcd424634c1b.tar.gz blackbird-op-linux-b2f8cfa7ac34202e5fd9551b6507fcd424634c1b.zip |
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>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r-- | drivers/clocksource/riscv_timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/riscv_timer.c b/drivers/clocksource/riscv_timer.c index 4e8b347e43e2..ad7453fc3129 100644 --- a/drivers/clocksource/riscv_timer.c +++ b/drivers/clocksource/riscv_timer.c @@ -84,7 +84,7 @@ void riscv_timer_interrupt(void) static int __init riscv_timer_init_dt(struct device_node *n) { - int cpu_id = riscv_of_processor_hart(n), error; + int cpu_id = riscv_of_processor_hartid(n), error; struct clocksource *cs; if (cpu_id != smp_processor_id()) |