Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1906730yba; Thu, 25 Apr 2019 07:36:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWOppJN+a8NFkC8ZLwgJ3VhE3AatAUiq+1YMmCpHr/MZIpnwcjuZzKYdwF3hBqBT/mNvlv X-Received: by 2002:a63:d256:: with SMTP id t22mr37702598pgi.80.1556202989729; Thu, 25 Apr 2019 07:36:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556202989; cv=none; d=google.com; s=arc-20160816; b=X9ESxGwAtMT3NJ1PQ3N+klUHgL/QRdT304FxBRnR1sHmyB6xKMsjWG1qjNAxO/8E8X aiv1t1OSQ3+oujIXhdcUIWTxAJQIMS8nNynOLkCc5uiBkWSfIH+7c/+ItdxHSwrdDp93 lXMKIIjN2j4UiIli7y1zUC912gHxMC4lhhVNKbpmiWLJ1ApxZHu7Z6gL/mAv2dwRoZ66 M8bULjQ5BufHrM1IZITZe9rReBjYvAPpanxc7o/T0DDRT5MDXgnhKqI3wRcS7AEKBlab 8Pgasti3L6M12oi0R5j3gFeMTrUo6vQ5ClHDd2W/LCHYUjidtAgQTZTMgJoOamCjppJt F6Ng== 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; bh=bf5teyJvomrDGmpHV0e95GnQZ8pww8ZyqdcIIaxl8ks=; b=YDX3Clg+7F3himC+yrmkUoXWiWO4gaYEJQDX+X2UKKAtYF/XYInN32eVq5d3G3f0tN zsVMJAh+vY4UaMoeAEExcNFT3ac8y6VFzIPFwDT3+FGGWyQ8AX+hz+1mxbCzmzw9mlpJ rqv79OwShvSf5FvJ8mEsB3I+iNIuj+jbn1QyoGXmhAUZq/StWe9V4unumpZcbMN1ezzf /mShJXRQ6G9h1L/cROmtM3Cg5rmXsg1NHwj24Gl/b+9WSrJOVMbgpH2Vi8/VN8M0dfhS IN/GpRQp+AThFMVwxszE1/LfPTeECxWhHyem5OPgg/80ONx7VvnujHF5JSulL7DskuO1 r9dQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a22si22012613plm.263.2019.04.25.07.36.14; Thu, 25 Apr 2019 07:36:29 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726684AbfDYOfL (ORCPT + 99 others); Thu, 25 Apr 2019 10:35:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58102 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726020AbfDYOfL (ORCPT ); Thu, 25 Apr 2019 10:35:11 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 051D8307EA92; Thu, 25 Apr 2019 14:35:11 +0000 (UTC) Received: from pauld.bos.csb (dhcp-17-51.bos.redhat.com [10.18.17.51]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E150F600C0; Thu, 25 Apr 2019 14:35:08 +0000 (UTC) Date: Thu, 25 Apr 2019 10:35:07 -0400 From: Phil Auld To: Vineeth Remanan Pillai Cc: Tim Chen , Nishanth Aravamudan , Julien Desfossez , Peter Zijlstra , Aubrey Li , mingo@kernel.org, tglx@linutronix.de, pjt@google.com, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, subhra.mazumdar@oracle.com, fweisbec@gmail.com, keescook@chromium.org, kerrnel@google.com, Aaron Lu , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini Subject: Re: [RFC PATCH v2 11/17] sched: Basic tracking of matching tasks Message-ID: <20190425143506.GB979@pauld.bos.csb> References: <54772e18-2f70-34cc-29ef-b9291f4846e2@linux.intel.com> <20190424204337.22283-1-vpillai@digitalocean.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190424204337.22283-1-vpillai@digitalocean.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Thu, 25 Apr 2019 14:35:11 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 24, 2019 at 08:43:36PM +0000 Vineeth Remanan Pillai wrote: > > A minor nitpick. I find keeping the vruntime base readjustment in > > core_prio_less probably is more straight forward rather than pass a > > core_cmp bool around. > > The reason I moved the vruntime base adjustment to __prio_less is > because, the vruntime seemed alien to __prio_less when looked as > a standalone function. > > I do not have a strong opinion on both. Probably a better approach > would be to replace both cpu_prio_less/core_prio_less with prio_less > which takes the third arguement 'bool on_same_rq'? > Fwiw, I find the two names easier to read than a boolean flag. Could still be wrapped to a single implementation I suppose. An enum to control cpu or core would be more readable, but probably overkill... Cheers, Phil > Thanks --