Re: [PATCH 3/3] irq: Compute the periodic interval for interrupts

From: Daniel Lezcano
Date: Thu Jun 22 2017 - 12:35:34 EST


On Thu, Jun 22, 2017 at 05:25:56PM +0200, Thomas Gleixner wrote:

[ ... ]

> > + ret = irq_timings_alloc(irq);
> > + if (ret) {
> > + pr_warn("Failed to allocate irq timing stats for irq%d (%d)",
> > + irq, ret);
>
> That error code is -ENOMEM always, right?

No, it could be also the value returned by idr_alloc() which could be EINVAL or
ENOSPC (which are values returned also by the low level libraries radix-tree
functions).