[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1908222029210.1983@nanos.tec.linutronix.de>
Date: Thu, 22 Aug 2019 20:29:46 +0200 (CEST)
From: Thomas Gleixner <tglx@...utronix.de>
To: Andi Kleen <ak@...ux.intel.com>
cc: kan.liang@...ux.intel.com, peterz@...radead.org, mingo@...hat.com,
acme@...nel.org, linux-kernel@...r.kernel.org, eranian@...gle.com
Subject: Re: [PATCH V2] perf/x86: Consider pinned events for group
validation
On Thu, 22 Aug 2019, Andi Kleen wrote:
> > + /*
> > + * Disable interrupts to prevent the events in this CPU's cpuc
> > + * going away and getting freed.
> > + */
> > + local_irq_save(flags);
>
> I believe it's also needed to disable preemption. Probably should
> add a comment, or better an explicit preempt_disable() too.
Preemption is implicit disabled by disabling interrupts.
Thanks,
tglx
Powered by blists - more mailing lists