Re: [PATCH V8 2/3] irq: Track the interrupt timings

From: Nicolas Pitre
Date: Thu Mar 23 2017 - 15:06:24 EST


On Thu, 23 Mar 2017, Daniel Lezcano wrote:

> On Thu, Mar 23, 2017 at 07:35:42PM +0100, Peter Zijlstra wrote:
> > On Thu, Mar 23, 2017 at 06:42:02PM +0100, Daniel Lezcano wrote:
> > > +void irq_timings_enable(void)
> > > +{
> > > + static_branch_inc(&irq_timing_enabled);
> >
> > Do you really need counting, or do you want static_branch_enable() here?
>
> I put counting in order to let several subsystem to use the irq timings if it
> is needed.

Please avoid overengineering. This can easily be changed later if it is
needed.


Nicolas