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)
commit6adfe8d2f5b353529d5a3a7842b764afbcd122e1
treebd70721857ed9ec87b39dd9e05942a38f3527e93
parent3fecb5aac2888814884881317ef139437338d8d0
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