diff options
author | Palmer Dabbelt | 2022-07-19 21:14:56 -0700 |
---|---|---|
committer | Palmer Dabbelt | 2022-07-19 21:15:36 -0700 |
commit | 8916c9054f940acbd735e33067e8a7e5a06f8834 (patch) | |
tree | bcdff33373241d7f870e79917c4421969902ded5 /drivers/irqchip/irq-riscv-intc.c | |
parent | b49816611eaceb66a00c8b18e6d7bcee63eba86b (diff) | |
parent | 171549f829dfebf1f44ffa76d3191bdc032d4cdb (diff) |
RISC-V: Support for 64bit hartid on RV64 platforms
The hartid can be a 64bit value on RV64 platforms. This series updates
the code so that 64bit hartid can be supported on RV64 platforms.
* 'riscv-64bit_hartid' of git://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git:
riscv/efi_stub: Add 64bit boot-hartid support on RV64
riscv: cpu: Add 64bit hartid support on RV64
riscv: smp: Add 64bit hartid support on RV64
riscv: spinwait: Fix hartid variable type
riscv: cpu_ops_sbi: Add 64bit hartid support on RV64
Diffstat (limited to 'drivers/irqchip/irq-riscv-intc.c')
-rw-r--r-- | drivers/irqchip/irq-riscv-intc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/irqchip/irq-riscv-intc.c b/drivers/irqchip/irq-riscv-intc.c index b65bd8878d4f..499e5f81b3fe 100644 --- a/drivers/irqchip/irq-riscv-intc.c +++ b/drivers/irqchip/irq-riscv-intc.c @@ -95,10 +95,11 @@ static const struct irq_domain_ops riscv_intc_domain_ops = { static int __init riscv_intc_init(struct device_node *node, struct device_node *parent) { - int rc, hartid; + int rc; + unsigned long hartid; - hartid = riscv_of_parent_hartid(node); - if (hartid < 0) { + rc = riscv_of_parent_hartid(node, &hartid); + if (rc < 0) { pr_warn("unable to find hart id for %pOF\n", node); return 0; } |