Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5062538imm; Tue, 19 Jun 2018 04:32:27 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI69/oo6Jp7lBkKTxgzjo+c665wNuHpnUcvyNe7AtEfUVozgVirM/uiyB4OdU+BELKkFkc6 X-Received: by 2002:a65:5086:: with SMTP id r6-v6mr511267pgp.375.1529407947084; Tue, 19 Jun 2018 04:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529407947; cv=none; d=google.com; s=arc-20160816; b=BnEc2kl3IoXG6Na6FHN5JCJTIKU41OpJkCjP31izMI/SaZjpmhpoA/IO3iWZaEfij1 ti4V6kVLPJ/3yI7HA33O0+KaNrPvdeniQBZexHILc48gbC2xS4yTA3W21jtQHanB17nY BEqND+zUdzWCpzvOS38yrvH6nokQ5tO8eoICXHqfRK8J4zRsq84Kplz1SEogTnIJJX2J 1Ch6SLvtsFSgjv1tUvVC7Sslgxt66fIkB3AxZ1CGbOHevDu9P3eM0i8kDqH6gnudUpKj 6KNq+C/ApzxcSmi3zP++yBKxTs4tHjGh6NlqnDlcNUqNXOAiZCsv9L6Kx76l9bRIQF6c ncQw== 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=K49UV3Xw2yNAUd75zvS7aHMDkM78Tv7ruQLEMmGvdHs=; b=Rg3bv5WENUS3TyJ/+kDE2UY9oCIIW0WaHKilFFln5FCruAQ+Drg9djBPDeum9bNNC0 SG0RqGCD0UzyhsIOZmZiI4U21jQ6TXrK7Cf19IipZ1hjr/ipbebXVMdURfJwiAOZ5d8J BNGNq/tIQ92EluR61IICjdsgwlAEQ1Ga4a3zImnQ29UuQGodslLaDy4o0z3903g7EbP9 IciZKxnMvKYmgq7TUvBojxC54xlfkBSmBB/bkzR2YnhsVD4n8Mf1fZY+0Kp1uV+oTk1F tLyCmaYLg0OMGfVki8fc6pfLlkmCxfnXgk8iOvE6QfLdizKrfkTgOIi4IsYQPzbz5JDr m6aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=jK7HH6wa; 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 g11-v6si14300135pgn.487.2018.06.19.04.32.13; Tue, 19 Jun 2018 04:32:27 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=jK7HH6wa; 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 S937582AbeFSLbe (ORCPT + 99 others); Tue, 19 Jun 2018 07:31:34 -0400 Received: from merlin.infradead.org ([205.233.59.134]:40224 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937396AbeFSLbd (ORCPT ); Tue, 19 Jun 2018 07:31:33 -0400 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=K49UV3Xw2yNAUd75zvS7aHMDkM78Tv7ruQLEMmGvdHs=; b=jK7HH6wa1Uvo71rAnneNIvnJG Xw/3/BvlZdHCvQXGjHu/I6RRvna1XhknAuLDhjUDwhEb+tvsi2UXeXdOzP/ACt+4PJTqekmsfBDjI BOeBNqBp7i3Z/bHgXuvzpcuWvsuIHLBEMWSdywMC+3bQ6bLoZnBwKq+VS7d/aB21q6iYN8k42j9hB oExNZXlG1dzWgW6Lt+B7vI83/7XY42jfuuIYDZL3b3V7mdojycyph480VuiOjuyYz6ai9kaZJcNEV rI1NMY6/UiRpLLNl1UfJEi19BVqNZwmc1YuBlHtgqz4W4vhJf/REvL1MH+5yLXqOYUSC/ymgZc9tx MIFdEdqkQ==; 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 1fVEqp-0008KK-Nk; Tue, 19 Jun 2018 11:31:07 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 33F652011CEBF; Tue, 19 Jun 2018 13:31:06 +0200 (CEST) Date: Tue, 19 Jun 2018 13:31:06 +0200 From: Peter Zijlstra To: Quentin Perret Cc: rjw@rjwysocki.net, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, mingo@redhat.com, dietmar.eggemann@arm.com, morten.rasmussen@arm.com, chris.redpath@arm.com, patrick.bellasi@arm.com, valentin.schneider@arm.com, vincent.guittot@linaro.org, thara.gopinath@linaro.org, viresh.kumar@linaro.org, tkjos@google.com, joelaf@google.com, smuckle@google.com, adharmap@quicinc.com, skannan@quicinc.com, pkondeti@codeaurora.org, juri.lelli@redhat.com, edubezval@gmail.com, srinivas.pandruvada@linux.intel.com, currojerez@riseup.net, javi.merino@kernel.org Subject: Re: [RFC PATCH v3 03/10] PM: Introduce an Energy Model management framework Message-ID: <20180619113106.GP2458@hirez.programming.kicks-ass.net> References: <20180521142505.6522-1-quentin.perret@arm.com> <20180521142505.6522-4-quentin.perret@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180521142505.6522-4-quentin.perret@arm.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 21, 2018 at 03:24:58PM +0100, Quentin Perret wrote: > + read_lock_irqsave(&em_data_lock, flags); > + for_each_cpu(cpu, cpu_possible_mask) { I know we're likely to only use this on small systems, but this pattern is a very bad, Please look at alternatives.