Re: [PATCH 09/13] sched: Add bandwidth management for sched_dl

From: Steven Rostedt
Date: Fri Dec 20 2013 - 13:26:18 EST


On Fri, 20 Dec 2013 13:23:23 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/