lkml.org 
[lkml]   [2019]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perf/core: fix multiplexing event scheduling issue
On Wed, Oct 23, 2019 at 11:37:57AM +0200, Peter Zijlstra wrote:
> Further, since we set it on reschedule, I propose you change the above
> like:
>
> if (ctx->rotate_necessary) {
> int type = get_event_type(event);
> /*
> * comment..
> */
> if (type & EVENT_PINNED)
> type |= EVENT_FLEXIBLE;
> + /*
> + * Will be reset by ctx_resched()'s flexible_sched_in().
> + */
> + ctx->rotate_necessary = 0;
> ctx_resched(cpuctx, cpuctx->task_ctx, type);
> }

n/m, that is already done through ctx_sched_out().

\
 
 \ /
  Last update: 2019-10-23 17:30    [W:0.077 / U:3.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site