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

2019-01-18 Thread Anup Patel
On Tue, Jan 15, 2019 at 9:26 PM Christoph Hellwig wrote: > > 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

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

2019-01-15 Thread Christoph Hellwig
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 ac

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

2018-12-27 Thread Anup Patel
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