Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp230234imm; Thu, 31 May 2018 23:03:52 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLbH2EjrwN8EmWUzvfp1Bg20yzzWWZbzaTXvD4Ozm+PK4lhwqMo1ZFKTEuDN3oRtl/MDeJc X-Received: by 2002:a63:5fc4:: with SMTP id t187-v6mr7628611pgb.183.1527833032550; Thu, 31 May 2018 23:03:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527833032; cv=none; d=google.com; s=arc-20160816; b=kgw5fJ0039CaNsQYOqISJy4p2mSLB6M9UIRZ/PHj6fjwHqo3AKPpH15PdBUiFIuu0k bRPbSO04qU2nD7VECZ+vYUaBUCfOW6sbGA5bvXXuhJJP+h385W1PVpqDzP1XohPj+gYu 6wwcdyYzJUWN2+BRVp+UB6N3D5UkZ3f2B41N64Nw4aQ9eQhY2ddoek49giR1H5nkCBMm AF9AmwgmTOjF4UGos7lY0fuEq1Qn6d59IOC86apI2AQXYoeselM5YxDzgMtj4iDgxetl YCzBzdH1I7JYuIZboNKr/FT8We4QMXmpeH/bOej8onbiHH19c7Vg9yL7koSWvWxRxZx5 5sbg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=IqLR/lBq966AF6Q6Z70A+B7O3yAW9I51Q+vmXRE56DE=; b=pAw3Pw0ZMaFKn/AhJkpFGYh64m6U9t3uUm1IX3tdsBcvb6BtSS6dRRV4hogno42zPr YRal+/v1MDBjDfIQ/FPIg85TaRpDNadoaB5O+yq2lsdjN6t2jSfS3Gx4GGAnSPlj2yUF U1L1Fw8LubLVI5ggWyn/9AiGbZq8SCX8mBHvlpqn4UX8NB+u4WAsA1AjmfCGwsyvrrMl 1qiAIZMkWsUWdwAjwM34y098yB4fDPTtttTN0Ez4p/B0br58QA7wbq6SS0YP86YKtWDY ZzcQasaoI10jqBSuFx6deo2Rc1OeYtQoOiLY0zlG3jcO2beHQmWvH66iF2hH18Ep7SVm Dg0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=fHnJ43cF; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u13-v6si2142318plm.99.2018.05.31.23.03.24; Thu, 31 May 2018 23:03:52 -0700 (PDT) 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=@joelfernandes.org header.s=google header.b=fHnJ43cF; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751129AbeFAGCs (ORCPT + 99 others); Fri, 1 Jun 2018 02:02:48 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:42919 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750821AbeFAGCr (ORCPT ); Fri, 1 Jun 2018 02:02:47 -0400 Received: by mail-pg0-f67.google.com with SMTP id p9-v6so10762933pgc.9 for ; Thu, 31 May 2018 23:02:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=IqLR/lBq966AF6Q6Z70A+B7O3yAW9I51Q+vmXRE56DE=; b=fHnJ43cFZ7KRRxlgCqOK5rmYn8RhNv/x01kVE1N0qAqugO26u0lunLyw/LiYQ++JRH SACf3dFwnrLuPmCTtt8LdCWTDU1JWpeH/HKFm0cVSIVdc4rUb5mYUHz5CwIjKEMUjeJf vAXxsmn2Dn52InchJx/kvbgTG1gT1tJRSflRc= 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:in-reply-to:user-agent; bh=IqLR/lBq966AF6Q6Z70A+B7O3yAW9I51Q+vmXRE56DE=; b=mg0H6wqjmT36ligSZr1M5cHqEl+M+UfQvAl1VRikgM6AUj9aUym9QDD4ok+ckZ01ff Kt6WlkPZtRy+pcjio9O4ECeMnXQjoxI6dhUGq1cXJKNtM/7bMmGh/AeZWxsMAnhMJtZI xDlVbgJNjQIdD2qm/1+ONMqFNorCYpo2vSLcxbdDxUcC5s9YZOdXxt7/zqaBrAh9dlKh BmgsExkovZOOggW8jdB8xnqQsfLwFOE0sp/7cacB0Ny8WjcMv6JQ8huzX0uc65e37s8b fFNVE7X+XW6dYut+C9ZDX79tYyiv6B+HoPpg5RXr4gcWejpWaEiVN79mH2InLTT0aIz0 ZYew== X-Gm-Message-State: ALKqPwfmhg7xus99OSNvx8EGv68jeu+M18CDBKF/+QT97DdsZBY7SUGE ME15MoAr5LlYGwtkptesha7mxw== X-Received: by 2002:a62:8ac1:: with SMTP id o62-v6mr9679406pfk.141.1527832967293; Thu, 31 May 2018 23:02:47 -0700 (PDT) Received: from localhost ([2620:0:1000:1600:3122:ea9c:d178:eb]) by smtp.gmail.com with ESMTPSA id s2-v6sm72780230pfb.127.2018.05.31.23.02.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 May 2018 23:02:44 -0700 (PDT) Date: Thu, 31 May 2018 23:02:43 -0700 From: Joel Fernandes To: Byungchul Park Cc: Peter Zijlstra , mingo@kernel.org, rostedt@goodmis.org, tglx@linutronix.de, raistlin@linux.it, linux-kernel@vger.kernel.org, juri.lelli@gmail.com, bristot@redhat.com, kernel-team@lge.com Subject: Re: [RESEND PATCH v3 1/2] sched/deadline: Add cpudl_maximum_dl() for clean-up Message-ID: <20180601060243.GA184458@joelaf.mtv.corp.google.com> References: <1515392081-32320-1-git-send-email-byungchul.park@lge.com> <20180111090716.GV6176@hirez.programming.kicks-ass.net> <20180509063322.GA29160@X58A-UD3R> <536cd801-03e5-a1de-605b-a6ed0f95b4a9@lge.com> <6617f569-6c2f-509c-328e-fad3db73f5df@lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6617f569-6c2f-509c-328e-fad3db73f5df@lge.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 01, 2018 at 12:07:48PM +0900, Byungchul Park wrote: > > > On 2018-05-25 14:13, Byungchul Park wrote: > > > > > > On 2018-05-09 15:33, Byungchul Park wrote: > > > On Thu, Jan 11, 2018 at 10:07:16AM +0100, Peter Zijlstra wrote: > > > > > > > > > > > > Sorry for the huge delay on this, but I'll have to postpone further. > > > > Still busy with meltdown/spectre stuff. > > > > > > Please consider this. Even though it's not a big bug, anyway leading > > > mis-behavior in certain situaions. > > > > Could you see this patches, it's been too long since the start tho? > > Please, any opinion. Just my opinion: this patch [1] is just a cosmetic change. I would argue that there's no readability improvement by wrapping up elements[0].dl. Infact I even feel that the elements[0].cpu should directly be accessed since both .cpu and .dl for the 0th element are directly accessed only from one place (cpudl_find) and only one time, and explicitly accessing index 0 makes it more clear that this is the root of the max-heap. IOW I don't see any benefit in hiding it behind a wrapper which hides the fact that we're accessing the root of the max heap, but I don't terribly hate this patch and I'm Ok if maintainers and other reviewers think its worth it. thanks, - Joel [1] https://patchwork.kernel.org/patch/10149099/