From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1173392AbdDXSwA (ORCPT ); Mon, 24 Apr 2017 14:52:00 -0400 Received: from mail-qt0-f182.google.com ([209.85.216.182]:32779 "EHLO mail-qt0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S974747AbdDXSvv (ORCPT ); Mon, 24 Apr 2017 14:51:51 -0400 Subject: Re: [PATCH RFC] sched/deadline: Use the revised wakeup rule for suspending constrained dl tasks To: Steven Rostedt Cc: Ingo Molnar , Peter Zijlstra , Xunlei Pang , Juri Lelli , Luca Abeni , Tommaso Cucinotta , Romulo Silva de Oliveira , linux-kernel@vger.kernel.org References: <5c6933890ea6daa3b4edb4983b0c6f094ad3903d.1493045834.git.bristot@redhat.com> <20170424130043.0b9c9881@gandalf.local.home> From: Daniel Bristot de Oliveira Message-ID: <5fd0446b-0c5c-ce82-7e18-c56140e1a83b@redhat.com> Date: Mon, 24 Apr 2017 20:51:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: <20170424130043.0b9c9881@gandalf.local.home> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/24/2017 07:00 PM, Steven Rostedt wrote: >> +static void >> +update_dl_revised_wakeup(struct sched_dl_entity *dl_se, struct rq *rq) >> +{ >> + u64 density = div64_u64(dl_se->dl_runtime << 20, dl_se->dl_deadline); > Hmm, dl_runtime and dl_deadline don't get updated that often. Can't we > simply keep a static dl_se->dl_density, and update it when dl_runtime > or dl_deadline get updated? That would get rid of the divide in the > middle of a wake up call. Yeah, I agree! Juri also pointed in the same direction, I will add it in the possible next version ;-). Thanks for the feedback! -- Daniel