Accelerate the entropy pool initialization process.
The function handle_irq_event_percpu adds entropy pool
initialization, but this logic is missing in the PPI interrupt handler.
I think this was simply an accidental omission.

Signed-off-by: Enlin Mu <[email protected]>
---
 kernel/irq/chip.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index de754db414d1..cbbd7e7d1156 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -926,6 +926,7 @@ void handle_percpu_devid_irq(struct irq_desc *desc)
                trace_irq_handler_entry(irq, action);
                res = action->handler(irq, raw_cpu_ptr(action->percpu_dev_id));
                trace_irq_handler_exit(irq, action, res);
+               add_interrupt_randomness(irq);
        } else {
                bool enabled = cpumask_test_cpu(cpu, desc->percpu_enabled);
 
-- 
2.39.5


Reply via email to