From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754611AbcIIMYR (ORCPT ); Fri, 9 Sep 2016 08:24:17 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34428 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752567AbcIIMYO (ORCPT ); Fri, 9 Sep 2016 08:24:14 -0400 Date: Fri, 9 Sep 2016 14:24:10 +0200 From: luca abeni To: Daniel Bristot de Oliveira Cc: Tommaso Cucinotta , 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: <20160909142410.5a442d2d@utopia> In-Reply-To: References: <20160909074026.GC10409@e106622-lin> <1473410650-30918-1-git-send-email-tommaso.cucinotta@sssup.it> <1473410650-30918-2-git-send-email-tommaso.cucinotta@sssup.it> <20160909120041.2988e93a@utopia> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 9 Sep 2016 09:17:56 -0300 Daniel Bristot de Oliveira wrote: > On 09/09/2016 07:00 AM, luca abeni wrote: > > Maybe instead of saying that the task is suspended you can say that > > since the remaining runtime goes to 0 the task is immediately throttled, > > and will be able to execute again only after the time is equal to the > > scheduling deadline (as explained in "2. Scheduling algorithm"). > > well, that is not true anymore. Since: > > 48be3a6 sched/deadline: Always calculate end of period on sched_yield() > > the runtime is zeroed at the replenishment, if dl_se->dl_yielded is set > and runtime > 0. Ok, but the task is still throttled, right? Thanks, Luca