On Fri, 20 Dec 2013 13:23:23 -0500
Steven Rostedt <rost...@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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to