lkml.org 
[lkml]   [2014]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V4 06/16] perf, core: always switch pmu specific data during context switch
On Mon, Jun 30, 2014 at 04:50:43PM +0800, Yan, Zheng wrote:
> @@ -2347,6 +2348,11 @@ static void perf_event_context_sched_out(struct task_struct *task, int ctxn,
> next->perf_event_ctxp[ctxn] = ctx;
> ctx->task = next;
> next_ctx->task = task;
> +
> + ctx_data = next_ctx->task_ctx_data;
> + next_ctx->task_ctx_data = ctx->task_ctx_data;
> + ctx->task_ctx_data = ctx_data;
> +

swap(ctx->task_ctx_data, next_ctx->task_ctx_data);

?
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2014-07-02 12:41    [W:0.143 / U:0.868 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site