forked from Mirrors/opensbi
lib: sbi: Add SSE support for PMU events
Add SSE callbacks registration to PMU driver in order to disable interrupt delegation for PMU interrupts. When interrupts are undelegated send the PMU SSE event upon LCOFIP IRQ. Signed-off-by: Clément Léger <cleger@rivosinc.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:

committed by
Anup Patel

parent
09ad21445f
commit
06fc453ec1
@@ -223,6 +223,9 @@ static int sbi_trap_nonaia_irq(unsigned long irq)
|
||||
case IRQ_M_SOFT:
|
||||
sbi_ipi_process();
|
||||
break;
|
||||
case IRQ_PMU_OVF:
|
||||
sbi_pmu_ovf_irq();
|
||||
break;
|
||||
case IRQ_M_EXT:
|
||||
return sbi_irqchip_process();
|
||||
default:
|
||||
@@ -246,6 +249,9 @@ static int sbi_trap_aia_irq(void)
|
||||
case IRQ_M_SOFT:
|
||||
sbi_ipi_process();
|
||||
break;
|
||||
case IRQ_PMU_OVF:
|
||||
sbi_pmu_ovf_irq();
|
||||
break;
|
||||
case IRQ_M_EXT:
|
||||
rc = sbi_irqchip_process();
|
||||
if (rc)
|
||||
|
Reference in New Issue
Block a user