]> 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)
commit6bd7a508bb5e571fd41e36f86bd8fa6c81e5ad59
treea7d4426654e3b0b8b6f0930b668beec8a3d1042b
parentdbd4f40d948a5fbee32087b75c6ee400bc64415b
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