[Skiboot] [PATCH 3/8] psi: On p9, create an interrupt-map for routing PSI interrupts

Benjamin Herrenschmidt benh at kernel.crashing.org
Sun Jul 3 20:23:40 AEST 2016


On Sun, 2016-07-03 at 19:47 +0930, Joel Stanley wrote:
> 
> > +static void psi_create_p9_int_map(struct psi *psi, struct dt_node *np)
> > +{
> > +       uint32_t map[P9_PSI_NUM_IRQS][3];
> > +       int i;
> > +
> > +       for (i = 0; i < P9_PSI_NUM_IRQS; i++) {
> > +               map[i][0] = i;
> > +               map[i][1] = psi->interrupt + i;
> > +               map[i][0] = 1;
> 
> This doesn't look correct.

Indeed ... copy/paste error :-)

Thanks !

Cheers,
Ben.




More information about the Skiboot mailing list