Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1479480

[PATCH] sched/deadline: document behavior of sched_yield()

From Tommaso Cucinotta <tommaso.cucinotta@sssup.it>
Newsgroups linux.kernel
Subject [PATCH] sched/deadline: document behavior of sched_yield()
Date 2016-09-08 22:20 +0200
Message-ID <sfdXH-20B-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] sched/deadline: document behavior of sched_yield() Tommaso Cucinotta <tommaso.cucinotta@sssup.it> - 2016-09-08 22:20 +0200
  Re: [PATCH] sched/deadline: document behavior of sched_yield() Juri Lelli <juri.lelli@arm.com> - 2016-09-09 09:50 +0200
    [PATCH] sched/deadline: document behavior of sched_yield() Tommaso Cucinotta <tommaso.cucinotta@sssup.it> - 2016-09-09 10:50 +0200
      Re: [PATCH] sched/deadline: document behavior of sched_yield() luca abeni <luca.abeni@unitn.it> - 2016-09-09 12:10 +0200
        Re: [PATCH] sched/deadline: document behavior of sched_yield() Daniel Bristot de Oliveira <bristot@redhat.com> - 2016-09-09 14:20 +0200
          Re: [PATCH] sched/deadline: document behavior of sched_yield() luca abeni <luca.abeni@unitn.it> - 2016-09-09 14:30 +0200
            Re: [PATCH] sched/deadline: document behavior of sched_yield() luca abeni <luca.abeni@unitn.it> - 2016-09-09 14:40 +0200
              Re: [PATCH] sched/deadline: document behavior of sched_yield() Daniel Bristot de Oliveira <bristot@redhat.com> - 2016-09-09 15:20 +0200
            Re: [PATCH] sched/deadline: document behavior of sched_yield() Daniel Bristot de Oliveira <bristot@redhat.com> - 2016-09-09 14:40 +0200
    [PATCH] sched/deadline: document behavior of sched_yield() Tommaso Cucinotta <tommaso.cucinotta@sssup.it> - 2016-09-09 10:50 +0200

csiph-web