]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/sifive-plic: Differentiate between PLIC handler and context
authorAnup Patel <anup@brainfault.org>
Tue, 12 Feb 2019 12:52:45 +0000 (18:22 +0530)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 21 Feb 2019 10:32:17 +0000 (10:32 +0000)
commit7b82fcc84016c96a48aebf923ba924fb990bf3ba
treebd70721857ed9ec87b39dd9e05942a38f3527e93
parent5b59230dca558057b024d2964918d29050205cec
irqchip/sifive-plic: Differentiate between PLIC handler and context

We explicitly differentiate between PLIC handler and context because
PLIC context is for given mode of HART whereas PLIC handler is per-CPU
software construct meant for handling interrupts from a particular
PLIC context.

To achieve this differentiation, we rename "nr_handlers" to "nr_contexts"
and "nr_mapped" to "nr_handlers" in plic_init().

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