riscv: cpu: Add 64bit hartid support on RV64
authorSunil V L <sunilvl@ventanamicro.com>
Fri, 27 May 2022 05:17:42 +0000 (10:47 +0530)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 19 Jul 2022 23:39:14 +0000 (16:39 -0700)
commitad635e723e17379b192a5ba9c182e3eedfc24d16
tree16f68aacc8eb9b33253e64b2811783f96acf4a67
parent62750eae410cf20b7d040395064bac547cfdf540
riscv: cpu: Add 64bit hartid support on RV64

The hartid can be a 64bit value on RV64 platforms.

Add support for 64bit hartid in riscv_of_processor_hartid() and
update its callers.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20220527051743.2829940-5-sunilvl@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/processor.h
arch/riscv/kernel/cpu.c
arch/riscv/kernel/cpufeature.c
arch/riscv/kernel/smpboot.c
drivers/clocksource/timer-riscv.c
drivers/irqchip/irq-riscv-intc.c
drivers/irqchip/irq-sifive-plic.c