]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/sifive-plic: Pre-compute context hart base and enable base
authorAnup Patel <anup@brainfault.org>
Tue, 12 Feb 2019 12:52:43 +0000 (18:22 +0530)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 21 Feb 2019 10:32:05 +0000 (10:32 +0000)
commitd630e374a6b28ab942ab3db34c982d17101b6775
treea7d4426654e3b0b8b6f0930b668beec8a3d1042b
parent6f0c3a760df1eb3d034d17cd1eb7cff2f0d3b430
irqchip/sifive-plic: Pre-compute context hart base and enable base

This patch does following optimizations:
1. Pre-compute hart base for each context handler
2. Pre-compute enable base for each context handler
3. Have enable lock for each context handler instead
of global plic_toggle_lock

Signed-off-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-sifive-plic.c