From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753193AbcBOMhb (ORCPT ); Mon, 15 Feb 2016 07:37:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40595 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752632AbcBOMh3 (ORCPT ); Mon, 15 Feb 2016 07:37:29 -0500 Subject: Re: [PATCH] sched/deadline: Always calculate end of period on sched_yield() To: Juri Lelli , Steven Rostedt References: <20160212181020.7dbaf326@gandalf.local.home> <20160215101824.GD22643@pablo> Cc: LKML , Juri Lelli , Peter Zijlstra , Ingo Molnar , Clark Williams , John Kacur From: Daniel Bristot de Oliveira Message-ID: <56C1C685.6030601@redhat.com> Date: Mon, 15 Feb 2016 10:37:25 -0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <20160215101824.GD22643@pablo> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/15/2016 08:18 AM, Juri Lelli wrote: > Do you think we could also skip some of the > following updates/accounting in this case? Not sure we win anything by > doing that, though. I reviewed rostedt's patch and the following updates/accounting operations. I agree with rostedt's patch, and also agree that if (delta_exec == 0) it is a good idea to skip some += 0 and function calls of the next updates/accounting operations, before the if (dl_runtime_exeeded...).