[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201202102609.GO3092@hirez.programming.kicks-ass.net>
Date: Wed, 2 Dec 2020 11:26:09 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: kan.liang@...ux.intel.com
Cc: mingo@...nel.org, linux-kernel@...r.kernel.org,
namhyung@...nel.org, eranian@...gle.com, irogers@...gle.com,
gmx@...gle.com, acme@...nel.org, jolsa@...hat.com,
ak@...ux.intel.com, benh@...nel.crashing.org, paulus@...ba.org,
mpe@...erman.id.au
Subject: Re: [PATCH V2 3/3] perf: Optimize sched_task() in a context switch
On Tue, Dec 01, 2020 at 06:29:03PM +0100, Peter Zijlstra wrote:
> +static void context_sched_task(struct perf_cpu_context *cpuctx,
> + struct perf_event_context *ctx,
> + bool sched_in)
> +{
> + struct pmu *pmu = ctx->pmu;
> +
> + if (cpuctx->sched_cb_dir[sched_in] && pmu->sched_task)
> + pmu->sched_task(ctx, false);
> +}
s/false/sched_in/
Powered by blists - more mailing lists