RISC-V/perf: Use standard interface to get INTC domain
authorSunil V L <sunilvl@ventanamicro.com>
Wed, 7 Jun 2023 11:24:17 +0000 (16:54 +0530)
committerPalmer Dabbelt <palmer@rivosinc.com>
Mon, 19 Jun 2023 16:27:59 +0000 (09:27 -0700)
commitca7473cb8312232d8e03808004c54528e9446b73
treee3e88d568cd5dd9cd9dc55800e14893a2db1d7cf
parent3b426d4b5b1462b8da31d4e631ac4f3c6270e9e1
RISC-V/perf: Use standard interface to get INTC domain

Currently the PMU driver is using DT based lookup to
find the INTC node for sscofpmf extension. This will not work
for ACPI based systems causing the driver to fail to register
the PMU overflow interrupt handler.

Hence, change the code to use the standard interface to find
the INTC node which works irrespective of DT or ACPI.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20230607112417.782085-3-sunilvl@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
drivers/perf/riscv_pmu_sbi.c