Received: by 10.223.185.116 with SMTP id b49csp451507wrg; Wed, 21 Feb 2018 00:57:18 -0800 (PST) X-Google-Smtp-Source: AH8x224p4Kmr5vARspOTgw3r5ezs3OqP9THhKuwomJIUwYRKxr8XjtLfCqaVlacZXQILamHIM9HR X-Received: by 10.99.168.75 with SMTP id i11mr2121185pgp.420.1519203438714; Wed, 21 Feb 2018 00:57:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519203438; cv=none; d=google.com; s=arc-20160816; b=uhXQDz+YZJeYsBbaqPEVQomQhQKxlv8/KjKxjGhURAM+uU/UFusfMmQmbOu5PdNs7y kGricXu+/0g6gl7oCkHcSywY19oDacjQYwQRIjNBv1LR0bXBJwqCJGMZc7QWPgxOEMWy fyI5o+KLzUYfBrU43E6wqyaiv1gaP0FL8IdEMHtOy83ksAQ6BWBMvR0FE+dlrGnu/YNl PFdmezeOXUXBBTJHYsTwZ20RWqN6IwWMGUrK6YJgFKq6+v+RH4e+HsyPRV99jWJYprnx t28Slim7CyvxWTywQTz0NpTryznxxEIbt2CDdHL10p9kiVYWGGFQdZM+vanTN7ks81ry MhfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=NkT8Gu/U3p+cP+bdylGRA4VYKxyqPv8yfTOq2IpfGA8=; b=ZAl2jwnvvMZPrAzMbMWwh0bDA/f5uLx2DaDfeGK7r+dvQrqez6rXJUcydltXhOuDbL 84j1pgJUa2FWeDVb+fw2WiTPI/1KBY0k3XPFGu4fdh+4kBkmyw2ymwDC+TrimE/57utj jkNx/sPBoJHJqpy7Uskwqf97HplDSlAtvqHaJEiYKacZnmAY43PX17GUc49kja5DG6sQ mOcF/ci+Rk6GW2Dl6uyv5M5SpaawGF7AUi6jA8G6yxJ0jcJwHYMFAZHIUxbw10Rtrgxj 3KIJHdhrzDxJ/rNYIDcdh36jjF8IkoGVAvKxelIyLiTD0BQYyDsKUpr3Hni+7iYX9gH4 Josg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rL/+Vh3i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2-v6si648373ple.739.2018.02.21.00.57.03; Wed, 21 Feb 2018 00:57:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rL/+Vh3i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751965AbeBUIJv (ORCPT + 99 others); Wed, 21 Feb 2018 03:09:51 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:38892 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751447AbeBUIJt (ORCPT ); Wed, 21 Feb 2018 03:09:49 -0500 Received: by mail-wr0-f194.google.com with SMTP id n7so1836273wrn.5; Wed, 21 Feb 2018 00:09:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=NkT8Gu/U3p+cP+bdylGRA4VYKxyqPv8yfTOq2IpfGA8=; b=rL/+Vh3iYC1WFKTz7EYHOqY1xY0d567NGmqZhGiAQbLIg6UTEV0q9CDv2FH1JbymUe b9tFlDwCXugOxdmcm4o6TLRSEFik6+6vUCKuO/1/mtGQFn/yTHysIK0HxEiQuSdWLVGY 5VURgDlymUrMhG0j+QRAItRKS3vM6rFTMcWvJBxgM8B1aU9vIXEuoV3AlIat9XILLf0u 0ipc9m3WHgxD2lL1h0J9pWueACL+vPq/Gw+LWeJINQiIr+qHkb4QeiANEdHdM8hMXG/M yIM4R5U2YEPzy4c2CvWB+S9ePHQz97cKMakCaDFZHX6LsaJ2+VFz5c8qjCn3T5Yq8UDt WbbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=NkT8Gu/U3p+cP+bdylGRA4VYKxyqPv8yfTOq2IpfGA8=; b=GnPjBM4tHbnaPIeeBa1VqzcmN15CAEs0MWnd3NlHdt+TL219NImPxi/ArIb+p+hWut q29GQNagDOrT246GabfjjGx4jwMHjdEgKpLL2XM2MGEtRvgezZkZueJPZfBdO/Y7M9Cv HCroYiPsBIvwM2fRK/gUS8PtQ01VLBqkPsAz14rPDgeRbzcuc9NDWJcnq76xUShEWQTg qBbFlU144GcJp39uuuw6EAHe8V+XT8HUbej0Cxy7+7hTX/93WeRhj2XrO6wTgoN8Q6Gm OPOu+X+Vw/AowMdQb4NDodEM26haKuFQLiQ2cdhjE2slEb1PD3furQk2tU1gjdPRhWX1 95og== X-Gm-Message-State: APf1xPAXGP4KUlxUQ14XRfawd7DqvVgu5ttQ2XjR8hVYCEZa7eJM4ldO xQbMWkMYFf+0Ezuywx6Ae0PENNhK X-Received: by 10.223.176.201 with SMTP id j9mr2228953wra.210.1519200588514; Wed, 21 Feb 2018 00:09:48 -0800 (PST) Received: from localhost.localdomain ([151.15.228.62]) by smtp.gmail.com with ESMTPSA id f23sm9040323wrf.77.2018.02.21.00.09.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Feb 2018 00:09:47 -0800 (PST) Date: Wed, 21 Feb 2018 09:09:44 +0100 From: Juri Lelli To: Christopher =?iso-8859-1?Q?D=EDaz?= Riveros Cc: Peter Zijlstra , mingo@redhat.com, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH-next] sched/headers: Clean up Message-ID: <20180221080944.GB8032@localhost.localdomain> References: <20180215154318.15894-1-chrisadr@gentoo.org> <20180215165212.GB25181@hirez.programming.kicks-ass.net> <20180216094432.GG8032@localhost.localdomain> <1518787521.2464.20.camel@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1518787521.2464.20.camel@gentoo.org> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/02/18 08:25, Christopher D?az Riveros wrote: > El vie, 16-02-2018 a las 10:44 +0100, Juri Lelli escribi?: > > On 15/02/18 17:52, Peter Zijlstra wrote: > > > On Thu, Feb 15, 2018 at 10:43:18AM -0500, Christopher Diaz Riveros > > > wrote: > > > > [...] > > > > > > @@ -437,20 +437,28 @@ struct sched_dl_entity { > > > > * during sched_setattr(), they will remain the same > > > > until > > > > * the next sched_setattr(). > > > > */ > > > > - u64 dl_runtime; /* > > > > Maximum runtime for each instance */ > > > > - u64 dl_deadline; / > > > > * Relative deadline of each instance */ > > > > - u64 dl_period; /* > > > > Separation of two instances (period) */ > > > > - u64 dl_bw; > > > > /* dl_runtime / dl_period */ > > > > - u64 dl_density; /* > > > > dl_runtime / dl_deadline */ > > > > + /* Maximum runtime for each instance */ > > > > + u64 dl_runtime; > > > > + /* Relative deadline of each instance */ > > > > + u64 dl_deadline; > > > > + /* Separation of two instances (period) */ > > > > + u64 dl_period; > > > > + /* dl_runtime / dl_period */ > > > > + u64 dl_bw; > > > > + /* dl_runtime / dl_deadline */ > > > > + u64 dl_density; > > > > > > That's a whole lot less readable :/ > > > > Yep. :( > > Thank you all for the feedback, I'll consider this patch as NACK. Sorry > for wasting time in a low quality patch. I'll prepare a better one > next time :) No problem, thanks actually to seeing if things can be cleaned up. :) While going through that struct again I was thinking that we might want to completely remove inline comments and put them in the above comment block(s), as we already have for bool flags: /* * Some bool flags: * * @dl_throttled tells if we exhausted the runtime. If so, the * task has to wait for a replenishment to be performed at the * next firing of dl_timer. [...] Would it be OK and any better? Thanks, - Juri