lkml.org 
[lkml]   [2017]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/4] sched: cpufreq: Keep track of cpufreq utilization update flags
On Wed, Dec 20, 2017 at 02:18:59PM +0530, Viresh Kumar wrote:
> On 20-12-17, 09:31, Peter Zijlstra wrote:
> What about this case: A CFS task is running currently and an RT task
> is enqueued.
>
> - Is it always the case that the CFS task is preempted immediately and
> the CPU is given to RT task ? I was talking to Vincent earlier and
> he told me that for certain configurations the CFS task may keep
> running until the next tick.
>
> - What if the CFS task has disabled preemption ?
>
> - More corner cases like this ?

If there is a runnable RT task we'll schedule to it ASAP. This means
for:

CONFIG_PREEMPT=y

either immediately or when next preempt_enable() hits a 0
preempt_count.

CONFIG_PREEMPT=n

on any next kernel preemption point or when returning to userspace.

But this is not something we should worry about.

\
 
 \ /
  Last update: 2017-12-20 10:18    [W:0.201 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site