Re: [PATCH v4 4/5] irqchip: sifive-plic: Differentiate between PLIC handler and context

From: Christoph Hellwig
Date: Tue Jan 15 2019 - 10:56:08 EST


On Thu, Dec 27, 2018 at 04:48:20PM +0530, Anup Patel wrote:
> 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().

Not sure what this differenciates that we previously didn't. As far
as I can tell it just is a slight naming cleanup.