From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752547AbcIIHkd (ORCPT ); Fri, 9 Sep 2016 03:40:33 -0400 Received: from foss.arm.com ([217.140.101.70]:34602 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751913AbcIIHkb (ORCPT ); Fri, 9 Sep 2016 03:40:31 -0400 Date: Fri, 9 Sep 2016 08:40:26 +0100 From: Juri Lelli To: Tommaso Cucinotta Cc: Luca Abeni , Juri Lelli , Peter Zijlstra , Ingo Molnar , linux-kernel@vger.kernel.org, linux-dl@retis.sssup.it Subject: Re: [PATCH] sched/deadline: document behavior of sched_yield() Message-ID: <20160909074026.GC10409@e106622-lin> References: <1473365399-29430-1-git-send-email-tommaso.cucinotta@sssup.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1473365399-29430-1-git-send-email-tommaso.cucinotta@sssup.it> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tommaso, On 08/09/16 22:09, Tommaso Cucinotta wrote: > 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). I like the patch, but changelog lacks a SoB. Thanks, - Juri > --- > 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 >