|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH-4.5 3/4] xen/arm: do not request maintenance_interrupts
On Fri, 7 Feb 2014, Julien Grall wrote:
> On 07/02/14 18:56, Stefano Stabellini wrote:
> > +static void gic_clear_lrs(struct vcpu *v)
> > +{
> > + struct pending_irq *p;
> > + int i = 0, irq;
> > + uint32_t lr;
> > + bool_t inflight;
> > +
> > + ASSERT(!local_irq_is_enabled());
> > +
> > + while ((i = find_next_bit((const long unsigned int *)
> > &this_cpu(lr_mask),
> > + nr_lrs, i)) < nr_lrs) {
>
> Did you look at to ELRSR{0,1} registers which list the usable LRs? I think you
> can use it with the this_cpu(lr_mask) to avoid browsing every LRs.
Given that we only have 4 LR registers, I think that unconditionally
reading 2 ELRSR registers would cost more than simply checking lr_mask
on average.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |