irqchip/sifive-plic: Remove incorrect requirement about number of irq contexts
authorWesley W. Terpstra <wesley@sifive.com>
Tue, 12 May 2020 17:26:36 +0000 (10:26 -0700)
committerMarc Zyngier <maz@kernel.org>
Mon, 18 May 2020 09:28:30 +0000 (10:28 +0100)
commit82f2202ddc97490994fad0dbfec04a014fa5163d
tree1592a6284e2d9a1b2da4b49f6f99381f0ebd3ff6
parent8a94c1ab34d53476617f83610521cfb6674db8d4
irqchip/sifive-plic: Remove incorrect requirement about number of irq contexts

A PLIC may not be connected to all the cores. In that case, nr_contexts
may be less than num_possible_cpus. This requirement is only valid a single
PLIC is the only interrupt controller for the whole system.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: "Wesley W. Terpstra" <wesley@sifive.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Acked-by: Palmer Dabbelt <palmerdabbelt@google.com>
Link: https://lore.kernel.org/r/20200512172636.96299-1-atish.patra@wdc.com
[Atish: Modified the commit text]
drivers/irqchip/irq-sifive-plic.c