[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC PATCH V3 05/22] Change MAX_EVTCHNS macro to max_evtchns inline function
On 27/02/13 14:33, Wei Liu wrote: > The calculation of max event channels depends on the actual ABI in use. Try to > avoid gcc-ism macro. [...] > +static inline unsigned int max_evtchns(struct domain *d) > +{ > + return BITS_PER_EVTCHN_WORD(d) * BITS_PER_EVTCHN_WORD(d); > +} This value doesn't change over the life of the domain. Calculate it once and save it in a new d->max_evtchns field? David _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |