Re: [PATCH v2 1/4] irqchip: sifive-plic: Pre-compute context hart base and enable base

2018-11-29 Thread Anup Patel
On Fri, Nov 30, 2018 at 6:05 AM Atish Patra wrote: > > On 11/27/18 2:03 AM, Anup Patel wrote: > > This patch does following optimizations: > > 1. Pre-compute hart base for each context handler > > 2. Pre-compute enable base for each context handler > > 3. Have enable lock for each context handler

Re: [PATCH v2 1/4] irqchip: sifive-plic: Pre-compute context hart base and enable base

2018-11-29 Thread Atish Patra
On 11/27/18 2:03 AM, Anup Patel wrote: This patch does following optimizations: 1. Pre-compute hart base for each context handler 2. Pre-compute enable base for each context handler 3. Have enable lock for each context handler instead of global plic_toggle_lock Signed-off-by: Anup Patel --- d

[PATCH v2 1/4] irqchip: sifive-plic: Pre-compute context hart base and enable base

2018-11-27 Thread Anup Patel
This patch does following optimizations: 1. Pre-compute hart base for each context handler 2. Pre-compute enable base for each context handler 3. Have enable lock for each context handler instead of global plic_toggle_lock Signed-off-by: Anup Patel --- drivers/irqchip/irq-sifive-plic.c | 41