[PATCH 9/14] ps3: add interrupt alloc for outlets
Geert Uytterhoeven
Geert.Uytterhoeven at sonycom.com
Fri Jan 26 00:41:40 EST 2007
On Thu, 25 Jan 2007, Benjamin Herrenschmidt wrote:
> > +int ps3_alloc_irq(enum ps3_cpu_binding cpu, unsigned long outlet,
> > + unsigned int *virq)
> > +{
> > + return ps3_connect_irq(cpu, outlet, virq);
> > +}
> > +
> > +int ps3_free_irq(unsigned int virq)
> > +{
> > + ps3_disconnect_irq(virq);
> > + return 0;
> > +}
> > +
> > #define PS3_INVALID_OUTLET ((irq_hw_number_t)-1)
> > #define PS3_PLUG_MAX 63
>
> I'm not too fan of this... those 2 functions do strictly -nothing- other
> than export the ones they call (not even changing arguments).
>
> So why not export ps3_connect_irq / ps3_disconnect_irq directly ?
You're right. Originally they were all but trivial wrappers, but the recent
interrupt improvements have changed this.
Do you have a preference which names to keep?
1. ps3_connect_irq() and ps3_disconnect_irq() resemble the LV1 calls they
make,
2. ps3_alloc_irq() and ps3_free_irq() resemble the other
ps3_{alloc,free}_*_irq() names.
Personally I favor the latter.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE)
Geert.Uytterhoeven at sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1
Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium
More information about the Linuxppc-dev
mailing list