Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3679324imu; Tue, 18 Dec 2018 02:18:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/UGclWEshPNbzGmyFTDH2FPTiK62dGftd8rz2gOqBl/YDWYKFHPljoEMmWMB/Ung1clbkwk X-Received: by 2002:a62:9683:: with SMTP id s3mr16030931pfk.60.1545128334995; Tue, 18 Dec 2018 02:18:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545128334; cv=none; d=google.com; s=arc-20160816; b=ztl0/7AjlCakjd5jz7CxRGUL9m2d/6V3MtNWoQGRMKfn/RtHgu8vTUCq/MsaYHXOGi bf4m5JtQNGH4M6zFYkrr/b3coPWADdjN+rCSmH4rdLewQudWAR6VrgrGIa8gaQtH3dJ2 6GohV1Pc3Y6mXZbvG3k2pfKda0aFjSq8C5QKRb2Nnu3DgWbz6hg47XK9ECkEM/jnZN+2 CDHkn678KdCdcxfqfn8CORylRXccjNTtIj44jgP43oX79sN7xZfLsPsXw3R8s5nTfiIi kG6iqqamFhiTssLMlAMvl8Di6CToX/hrPHZjGyo8iEWpwp7gTwKYqDvv/LQEDF50q6HE dEMQ== 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; bh=npocvrWTM5VM1Ou07JEzt+r0Ck5x6NKw6E5HKl5iEQ4=; b=C1oh5/wzbuapzUgpY3tmREHVq9qTxLRYBnciUeW71BLnb5KAz0XSNF2oHwFYCRWqTA Azh18WGE8Ff3EH0cuGIpyYKlVk33ck4cTzu1jzb4nRfwyldLsl98WcAV6AJxD1jRRWQg 55MN8GOjGxjTScwT1QCDQ4iJSacUq0i028tM5vW4gcut38p3AFQwBto3IuTRwX23hVut Uzvx0UjrKQzAEIwTDFGp02Q2bto5SCibNIzxjKJP1kqXDsafiFrjioBIOs97bvXKPema FCNRFrKX5qVkX0Yb69xjf6EcZlLyXqbeJ1RloIKXTf3YAOb+MEWDVDq4jRXxbYgAhCAu l3Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=b5Kbrb2J; 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 w185si13229839pfw.122.2018.12.18.02.18.39; Tue, 18 Dec 2018 02:18:54 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=b5Kbrb2J; 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 S1726414AbeLRKRt (ORCPT + 99 others); Tue, 18 Dec 2018 05:17:49 -0500 Received: from merlin.infradead.org ([205.233.59.134]:36202 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726364AbeLRKRt (ORCPT ); Tue, 18 Dec 2018 05:17:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=npocvrWTM5VM1Ou07JEzt+r0Ck5x6NKw6E5HKl5iEQ4=; b=b5Kbrb2JdSoQQyVzmq+c1RngP 6TsFwi3SpZsjXqufi7bz6U1e8Ebb4Ck5zaQ+Bq35klosTTnCC3/GzLjztkiwiVOySROu6PIgaNeRl +Zljrzmwp4WvwheBPlaJQpUSJRN3xB0RGuvOWMShYxSQQuPiw01nsMgxSBjQGcpnvB3xDYWQr3tb+ kYXL01lDr0QRJsC4iC5BfVfjNPt2TvEqNqeqIo4w6daB7+u6SKJq34wOEcJeKqZlhN1zb+OtMqoZS EsP45cujoQ1C7cG8R+97Zp1VNiQjg/7YJtZPfRJvHbRMwIzAXATYfRbq4tiUgBnjyHBO1ePBwVk5e TsIZgzKGA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZCRM-0007Lm-OR; Tue, 18 Dec 2018 10:17:29 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 850D92027DA8E; Tue, 18 Dec 2018 11:17:27 +0100 (CET) Date: Tue, 18 Dec 2018 11:17:27 +0100 From: Peter Zijlstra To: Suren Baghdasaryan Cc: Greg Kroah-Hartman , Tejun Heo , lizefan@huawei.com, Johannes Weiner , axboe@kernel.dk, dennis@kernel.org, Dennis Zhou , Ingo Molnar , Andrew Morton , Jonathan Corbet , cgroups@vger.kernel.org, linux-mm , linux-doc@vger.kernel.org, LKML , kernel-team@android.com Subject: Re: [PATCH 4/6] psi: introduce state_mask to represent stalled psi states Message-ID: <20181218101727.GA15430@hirez.programming.kicks-ass.net> References: <20181214171508.7791-1-surenb@google.com> <20181214171508.7791-5-surenb@google.com> <20181217155525.GC2218@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 17, 2018 at 05:14:53PM -0800, Suren Baghdasaryan wrote: > On Mon, Dec 17, 2018 at 7:55 AM Peter Zijlstra wrote: > > > + if (state_mask & (1 << s)) > > > > We have the BIT() macro, but I'm honestly not sure that will improve > > things. > > I was mimicking the rest of the code in psi.c that uses this kind of > bit masking. Can change if you think that would be better. Yeah, I really don't know.. keep it as is I suppose.