lkml.org 
[lkml]   [2023]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 00/86] Make the kernel preemptible
On Tue, 07 Nov 2023 15:43:40 -0800
Ankur Arora <ankur.a.arora@oracle.com> wrote:

>
> The TIF_NEED_RESCHED flag is evaluated at all three of the preemption
> points. TIF_NEED_RESCHED_LAZY only needs to be evaluated at ret-to-user.
>
> ret-to-user ret-to-kernel preempt_count()
> NEED_RESCHED_LAZY Y N N
> NEED_RESCHED Y Y Y
>
> Based on how various preemption models set the flag they would cause
> preemption at:

I would change the above to say "set the NEED_SCHED flag", as "set the
flag" is still ambiguous. Or am I still misunderstanding the below table?

>
> ret-to-user ret-to-kernel preempt_count()
> none Y N N
> voluntary Y Y Y
> full Y Y Y
>

-- Steve

\
 
 \ /
  Last update: 2023-11-20 13:52    [W:1.115 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site