Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3051799imu; Wed, 7 Nov 2018 04:19:59 -0800 (PST) X-Google-Smtp-Source: AJdET5d0Fett8yDBWQHk4zdMKnyDsJnxVP7cZdj58ZYQKDHxm3Po/XQWwecZ7FwbsWh3V7FuuQXm X-Received: by 2002:a17:902:8689:: with SMTP id g9-v6mr15585plo.44.1541593199774; Wed, 07 Nov 2018 04:19:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541593199; cv=none; d=google.com; s=arc-20160816; b=0G97bOPv5k3so5jMcRf8trOznwi3QuZP6wWoUMfFC1CTN60YO7xJagBtpN6hMYm+Ip 5nNeLJPXQEmyAkyJCmyrfo9yk2J3EMDZQyr7U69YJfbGz7Pyd1maI+NSm4I4hbvCka9M 4HULaxqlZkHxnyjoYRhndkyRPsn4eDEIYqItWyUTf3iawB0iJfxfLcpksiK6enpPP/Xr 0ZcKaxtkeEnAOKMUSNuKKxsmDEn1OrxJO30nIuuwfJ3lpFo6dFlSU947ezMzVpWb3jos IAYf2lBbo3SGG54pbca43zOZYQik+M2kXroEMOzC8+E45BlRHBncY3JmiEfYA1xTDjXm mcWQ== 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=v23055yEHBFvJw7hZgkV2moVDYtXEwtvERZbDc7AyEM=; b=fgPViOueE7ialHZ9dRZY1drWfzJc8B4TWIGth0MnFDfrjDbxhq3efF/WppcnOxdoSb HbvhFa2Inu0+sfR3Kh5rCIakJFofwgfCJKfY+Gra70tS4FN8KXF7rQ8LcIJ+Zdjcsb/a rwYeSmkULPfd3DVx2+msI6GN0G2P5wdMARgCTsjNR70Of62dI4V08nHsJFqKBdgp1X6Q 5zJgteBhqvQ+5JIFpBMDNPmKCMuFx95E3qLsNlPporSUiMkUimIPzF7XWv8NtPbFIsMb 21GEO+1pN4e9hkZYvXqvOe5qIgRce1t0D5AFncoHRBusqy2xERYv0brgXxIomtsdP/dg 5bzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="Eq/9Z3dD"; 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 n12-v6si404944pgb.68.2018.11.07.04.19.43; Wed, 07 Nov 2018 04:19:59 -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=bombadil.20170209 header.b="Eq/9Z3dD"; 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 S1730510AbeKGVtX (ORCPT + 99 others); Wed, 7 Nov 2018 16:49:23 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:57480 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726669AbeKGVtW (ORCPT ); Wed, 7 Nov 2018 16:49:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=v23055yEHBFvJw7hZgkV2moVDYtXEwtvERZbDc7AyEM=; b=Eq/9Z3dDAdDZiaU62/V+5KScA C6uuj5dgY2nt+cQv0t2fvuNImlFl+0x62Rp/oRCMxSYrgwIOz6NWksxDyRe0relN0O1wHHbxzJW+d /Xe5xQ+FuZM9UFtPidbaNQHJkWQPh04Qr3prPvhzXsg90IC0lHXZENPZUuBuMX1adxtskOQKaxMNc xBfocgjXi9Nt1zOypopCQb/W3HST8Y4xxKWcn7nIPQH1h+njGqomKfp6zv9y8Yq3nn/O6T0nuz5aO yYTtfjRUuUCqETkx+t5BhWQyTumOsdtUNS4yMJg9dGeO6/wdxfmKywKwlYk9HBNBzjBK65blB8XEx MhNnXZxjA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKMne-0004Cb-UO; Wed, 07 Nov 2018 12:19:11 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id CCB3A20284F94; Wed, 7 Nov 2018 13:19:08 +0100 (CET) Date: Wed, 7 Nov 2018 13:19:08 +0100 From: Peter Zijlstra To: Patrick Bellasi Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , Tejun Heo , "Rafael J . Wysocki" , Vincent Guittot , Viresh Kumar , Paul Turner , Quentin Perret , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes , Steve Muckle , Suren Baghdasaryan Subject: Re: [PATCH v5 03/15] sched/core: uclamp: map TASK's clamp values into CPU's clamp groups Message-ID: <20181107121908.GO9781@hirez.programming.kicks-ass.net> References: <20181029183311.29175-1-patrick.bellasi@arm.com> <20181029183311.29175-4-patrick.bellasi@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181029183311.29175-4-patrick.bellasi@arm.com> 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, Oct 29, 2018 at 06:32:57PM +0000, Patrick Bellasi wrote: > +struct uclamp_se { > + unsigned int value : SCHED_CAPACITY_SHIFT + 1; > + unsigned int group_id : order_base_2(UCLAMP_GROUPS); Are you sure about ob2() ? seems weird we'll end up with 0 for UCLAMP_GROUPS==1. > + unsigned int mapped : 1; > +};