All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched/deadline: document behavior of sched_yield()
@ 2016-09-08 20:09 Tommaso Cucinotta
  2016-09-09  7:40 ` Juri Lelli
  0 siblings, 1 reply; 13+ messages in thread
From: Tommaso Cucinotta @ 2016-09-08 20:09 UTC (permalink / raw)
  To: Luca Abeni, Juri Lelli, Peter Zijlstra, Ingo Molnar
  Cc: linux-kernel, linux-dl, Tommaso Cucinotta

This is a documentation only patch, explaining the
behavior of sched_yield() when a SCHED_DEADLINE
task calls it (give up remaining runtime and
suspend till next period).
---
 Documentation/scheduler/sched-deadline.txt | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/Documentation/scheduler/sched-deadline.txt b/Documentation/scheduler/sched-deadline.txt
index 53a2fe1..cb43421 100644
--- a/Documentation/scheduler/sched-deadline.txt
+++ b/Documentation/scheduler/sched-deadline.txt
@@ -16,6 +16,7 @@ CONTENTS
    4.1 System-wide settings
    4.2 Task interface
    4.3 Default behavior
+   4.4 Behavior of sched_yield()
  5. Tasks CPU affinity
    5.1 SCHED_DEADLINE and cpusets HOWTO
  6. Future plans
@@ -426,6 +427,18 @@ CONTENTS
  Finally, notice that in order not to jeopardize the admission control a
  -deadline task cannot fork.
 
+4.4 Behavior of sched_yield()
+-----------------------------
+
+ When a SCHED_DEADLINE task calls sched_yield(), it gives up its
+ remaining runtime and is suspended till the next reservation period,
+ when its runtime will be replenished.  This allows the task to
+ wake-up exactly at the beginning of the next period. Also, this may
+ be useful in the future with bandwidth reclaiming mechanisms, where
+ sched_yield() will make the leftoever runtime available for
+ reclamation by other SCHED_DEADLINE tasks.
+
+
 5. Tasks CPU affinity
 =====================
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-09-10 12:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-08 20:09 [PATCH] sched/deadline: document behavior of sched_yield() Tommaso Cucinotta
2016-09-09  7:40 ` Juri Lelli
2016-09-09  8:44   ` Tommaso Cucinotta
2016-09-09  8:44     ` Tommaso Cucinotta
2016-09-09 10:00       ` luca abeni
2016-09-09 12:17         ` Daniel Bristot de Oliveira
2016-09-09 12:24           ` luca abeni
2016-09-09 12:31             ` Daniel Bristot de Oliveira
2016-09-09 12:38               ` luca abeni
2016-09-09 13:15                 ` Daniel Bristot de Oliveira
2016-09-09 17:45   ` Tommaso Cucinotta
2016-09-09 17:45     ` Tommaso Cucinotta
2016-09-10 12:41       ` [tip:sched/core] sched/deadline: Document " tip-bot for Tommaso Cucinotta

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.