lkml.org 
[lkml]   [2013]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 09/13] sched: Add bandwidth management for sched_dl
On Fri, 20 Dec 2013 13:23:23 -0500
Steven Rostedt <rostedt@goodmis.org> wrote:

>
> CPU 0 CPU 1
> ----- -----
> sched_setattr()
> dl_overflow()
> cpus = __dl_span_weight()
>
> cpu_down()
> raw_spin_lock()
> raw_spin_lock() /* blocks */
>
>
> overflow = __dl_overflow(cpus-1);
> raw_spin_unlock();
>
> /* gets lock */
> __dl_overflow(cpus) /* all OK! */

Forgot to add:

/* new deadline commitment added here */

>
>
>
> /* cpus goes to cpus - 1 making
> __dl_overflow() not OK anymore */
>

also should have stated:

"__dl_overflow(cpus-1) not OK anymore"


-- Steve


\
 
 \ /
  Last update: 2013-12-20 19:41    [W:0.089 / U:0.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site