From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934296AbbDVPLw (ORCPT ); Wed, 22 Apr 2015 11:11:52 -0400 Received: from www.linutronix.de ([62.245.132.108]:34476 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934075AbbDVPLt (ORCPT ); Wed, 22 Apr 2015 11:11:49 -0400 Date: Wed, 22 Apr 2015 17:12:04 +0200 (CEST) From: Thomas Gleixner To: Peter Zijlstra cc: mingo@kernel.org, linux-kernel@vger.kernel.org, Stephane Eranian Subject: Re: [PATCH 3/3] perf: Fix mux_interval hrtimer wreckage In-Reply-To: <20150415095011.863052571@infradead.org> Message-ID: References: <20150415094155.601987867@infradead.org> <20150415095011.863052571@infradead.org> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Apr 2015, Peter Zijlstra wrote: > -static void perf_cpu_hrtimer_restart(struct perf_cpu_context *cpuctx) > +static int perf_mux_hrtimer_restart(struct perf_cpu_context *cpuctx) > { > - struct hrtimer *hr = &cpuctx->hrtimer; > + struct hrtimer *timer = &cpuctx->hrtimer; > struct pmu *pmu = cpuctx->ctx.pmu; > > /* not for SW PMU */ > if (pmu->task_ctx_nr == perf_sw_context) > - return; > + return 0; > > - if (hrtimer_active(hr)) > - return; > + if (hrtimer_is_queued(timer)) > + return 0; > > - hrtimer_start(hr, cpuctx->hrtimer_interval, HRTIMER_MODE_REL_PINNED); > + hrtimer_start(timer, cpuctx->hrtimer_interval, HRTIMER_MODE_REL_PINNED); return 0; > } I fixed it up when applying it. Thanks, tglx