Skip to content

Commit f30a54f

Browse files
clementlegeravpatel
authored andcommitted
lib: sbi: pmu: Remove MIP clearing from pmu_sse_enable()
Clearing MIP at that point means that we can probably lose a pending interrupt. This should not happen, remove MIP clearing from there. Signed-off-by: Clément Léger <[email protected]> Reviewed-by: Atish Patra <[email protected]> Reviewed-by: Samuel Holland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
1 parent b31a0a2 commit f30a54f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/sbi/sbi_pmu.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,6 @@ static void pmu_sse_enable(uint32_t event_id)
11041104
{
11051105
unsigned long irq_mask = sbi_pmu_irq_mask();
11061106

1107-
csr_clear(CSR_MIP, irq_mask);
11081107
csr_set(CSR_MIE, irq_mask);
11091108
}
11101109

0 commit comments

Comments
 (0)