Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp951487ybh; Mon, 13 Jul 2020 05:43:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgj1W3wGVv6hYlCVM8qNVnogl4E7EiVMPReCrPsnpKHN/8m6UHjdszWKqKZWJMEOqwqUAW X-Received: by 2002:a17:906:fcba:: with SMTP id qw26mr72135835ejb.112.1594644186379; Mon, 13 Jul 2020 05:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594644186; cv=none; d=google.com; s=arc-20160816; b=bT1oAwKGlzg1AjkAKeSrU9IzSZK+DoC29BNSUBCFyUeCyiiQHRZDqlJbmC/iy2bSNF d+j+GPbqbTuIgDrQCgZSPGUAEUfw/yifw961lWbWUgmWQEUqjMN2y6Vad/2Ow6PChXIL ZZ6FImUmDZszCM47/6EiL8UvkiGMYBhU66ITNo649B8x2aCHB5F3ZoaI9Tkmy1XyOkdT X0jnlgPEvE8EoyTQFFMTbXAScrhGI9v3Alv7vZ7lnDY2zgV7ktfkhzUd+jV22DLkKuyh PvVVof4NPTwA3ZMSoiwNFlSjBXWXWaxBjhJ7+k/UqwofmhX+uR7iOutMvytQMQ8iRJvC KI3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=qz2Jv/ggSypwc0uJUR+d7mBt/eDO9LlrpJONIT78xfg=; b=n/xybGeVBgDXLa3KcOOmNTPUX/B+rponP2elBBP46mFNdIy6XRTVS6J7+0XQ9tYmBF W1XTzb8wBdy/RjTyO5qIr/gGbKXf9guFibRgZGpW5J1F8NpHbkAut7SOcT5X3eA9R/0A K7GviHYybfyZ28IQNXxHUoHVy+mZQd/XD/svIdmGS5c88T7L4LrKtNJ+IfHINMMiwcVK smtU2yI57zeqWuVmc4b+8A2TobSvLZV7ADvGFgg/6XgfpqnZeJFpe+Uhi3MJpgb/cZIZ KLpL45Jf+mXNfolGAiljP8A8BuphBPhnD5Idh94rOC1F0nVg4/C1F1or0ViJIXc15Cw/ tNdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=xB4UytO7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd13si9375631edb.153.2020.07.13.05.42.43; Mon, 13 Jul 2020 05:43:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=xB4UytO7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729736AbgGMMkI (ORCPT + 99 others); Mon, 13 Jul 2020 08:40:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726586AbgGMMkH (ORCPT ); Mon, 13 Jul 2020 08:40:07 -0400 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7101AC061755 for ; Mon, 13 Jul 2020 05:40:07 -0700 (PDT) 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; bh=qz2Jv/ggSypwc0uJUR+d7mBt/eDO9LlrpJONIT78xfg=; b=xB4UytO71//Pna0dWhCyanNjbh aFxl8OHX2P+qf5CbnDBiRkxYkgPDUAt7R8rej9YA8miyY8zOEJYaM69AvxXtW/3pNNLC5MljBPvMq eBe5gclv5669CepzpmcbICsop/nzWCn3loAi1ojzoFCE7D79vdxpNqm0UMafSxknzfuniJW4TWO7T Rf0M1luzNSuTTt7UZXuI1eBZMN2PHHU0bgwceAigCPdHgcLMsszqQeuaVuZpAnA/U9c4xSvUy/FWV EMCZqemGtSgGV0dG1uv4A6EQEveiV/aW7QZtC+Bk06L4Zukb1Rw5+KFJeVHf5TRJCURMl+93vAmaE TwbPXCuw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1juxkY-0000um-Kw; Mon, 13 Jul 2020 12:40:02 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id C5557300DB4; Mon, 13 Jul 2020 14:39:59 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id AD69420D27C7E; Mon, 13 Jul 2020 14:39:59 +0200 (CEST) Date: Mon, 13 Jul 2020 14:39:59 +0200 From: Peter Zijlstra To: Valentin Schneider Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, morten.rasmussen@arm.com Subject: Re: [PATCH v3 6/7] sched/topology: Introduce SD metaflag for flags needing > 1 groups Message-ID: <20200713123959.GI10769@hirez.programming.kicks-ass.net> References: <20200701190656.10126-1-valentin.schneider@arm.com> <20200701190656.10126-7-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200701190656.10126-7-valentin.schneider@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 01, 2020 at 08:06:54PM +0100, Valentin Schneider wrote: > +/* Generate a mask of SD flags with the SDF_NEEDS_GROUPS metaflag */ > +#define SD_FLAG(name, idx, mflags) (BIT(idx) * (((mflags) & SDF_NEEDS_GROUPS) / SDF_NEEDS_GROUPS)) | #define SD_FLAGS(name, idx, mflags) (!!((mflags) & SDF_NEEDS_GROUPS) * BIT(idx)) > +static const int SD_DEGENERATE_GROUPS_MASK = > +#include > +0; > +#undef SD_FLAG > + > #ifdef CONFIG_SCHED_DEBUG > #define SD_FLAG(_name, idx, mflags) [idx] = {.meta_flags = mflags, .name = #_name}, > static const struct { > -- > 2.27.0 >