lkml.org 
[lkml]   [2021]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 4/4 v0.5] sched/umcg: add Documentation/userspace-api/umcg.rst
On Tue, Sep 14, 2021 at 9:34 AM Tao Zhou <tao.zhou@linux.dev> wrote:

[...]

> > +- worker to worker context switch:
> > + ``W1:RUNNING+W2:IDLE => W1:IDLE+W2:RUNNING``:
> > +
> > + - in the userspace, in the context of W1 running:
> > +
> > + - ``W2:IDLE => W2:RUNNING|LOCKED`` (mark W2 as running)
> > + - ``W1:RUNNING => W1:IDLE|LOCKED`` (mark self as idle)
> > + - ``W2.next_tid := W1.next_tid; S.next_tid := W2.next_tid``
> ^^^^^^^^
> W2.next_tid is a server. S.next_tid should be a worker; say:
>
> S.next_tid := W2.tid

You are definitely right here. I'll fix the doc in the next patchset.

\
 
 \ /
  Last update: 2021-09-14 18:58    [W:0.766 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site