Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp788918ybp; Fri, 4 Oct 2019 05:06:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuGelvabAggy+pHhcMhyCpfvZ2ElVLKx+L18lnDMY1wajuNEqd+1JH44zrkJiJyXGwojb7 X-Received: by 2002:a17:906:3486:: with SMTP id g6mr2239365ejb.262.1570190798641; Fri, 04 Oct 2019 05:06:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570190798; cv=none; d=google.com; s=arc-20160816; b=g27weVLOiEimi8PABUcXD0MSqmKJXwGvIRD1Ewn6CooN4REEQd7x6bi9RK+lm70vDL xtDYqHL2BdiSN0RI7MK/U2jG1xIm38q9EUSC77lZqbC7Ha2if81MQFFgCu2rA53XW0sz gxN94Z6ERw096+rfnQ0Dpt8tDcpJx1ayXD732nEbdSP5v3ZSZcae6sABrWv2aYSP+/wx LhLJB5WBHorFdJmjx+joGIfocCsHWuZKyCZekETAzL7+A2h8KItcKCWTYQyhsswtNP01 N5T7CoWsa2M1FzYqfi+NAuyjjUJMzxFvvPVPZuumKCtJcO0ugG62IbazdNhMUM4iUZIn GajA== 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=t94arAtwMSELxUeSxpVTRDoonLVl+3+fPDniWRezYE8=; b=Ue7M+LaQESgEdQdd4tOQ7I8jz4I6HCEox3bphb7ZK5xobHSr/u7yEYq/pB5Rx2ysY2 vavDctapCE/GQt+SM9rZiDcnS5v4R0+n56revilPNhT+tQcB9Nmb3nW7+fJDJcCtVNqS KcaUNRWMPFCNCbbW0tCEOOz1J168k6T0hdyMlhy8olc4KdWBn8ucISwgOozcYVIoSgRh AR8ovMavFxQDnNqMjwcH6x3va36zAEdfTbtKXS/N0PF+RhmdH/Baj9R3JvUHRC6d8U+D kbeT6SNtCBi0NjYpz63/tM2t81XTG9MYktqBdGcP0aXOIYckDzI8pJqETr/gtaJjlm2a /xsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=ssUMEk0f; 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 d26si3403263eda.190.2019.10.04.05.06.13; Fri, 04 Oct 2019 05:06:38 -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=ssUMEk0f; 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 S1730566AbfJDLtJ (ORCPT + 99 others); Fri, 4 Oct 2019 07:49:09 -0400 Received: from merlin.infradead.org ([205.233.59.134]:36314 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726393AbfJDLtJ (ORCPT ); Fri, 4 Oct 2019 07:49:09 -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=t94arAtwMSELxUeSxpVTRDoonLVl+3+fPDniWRezYE8=; b=ssUMEk0fG4hKLEBdEcLJQEOxz LFy6cOOMbYFukHC1NZ2ZG0eZfVtOZCQsPO+caJ/EQDphxs0JXz6bFbkbO3aqq7pk2KyWwJGt7PFOj Rz2lQ/VBLuV11Go8JEfsvZU1zLjxol+GFuQH3ezo1ypR3Ei5l7eM4XD08fpe42VK6y+QmR/FwGj8R YRs7g23kkaMKM4iVb7VUfghQIickBpaI+GT6gNzt7J6lKDKJI8U3MqzewVE2jWKq4mDUndhMWryV1 OmyJ7YlNnyrk71hpOXXw06WPg0N8S3CoIsDjUhr1Z8negxd01F+M8iqp20pwP+2dKzrxzLexm+Ead /3zgFnZKQ==; 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.2 #3 (Red Hat Linux)) id 1iGM4a-0006CC-Jk; Fri, 04 Oct 2019 11:48:36 +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 1D1D430034F; Fri, 4 Oct 2019 13:47:45 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id B90C3203E50D2; Fri, 4 Oct 2019 13:48:34 +0200 (CEST) Date: Fri, 4 Oct 2019 13:48:34 +0200 From: Peter Zijlstra To: "Rafael J. Wysocki" Cc: Giovanni Gherdovich , Srinivas Pandruvada , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Len Brown , x86@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Mel Gorman , Matt Fleming , Viresh Kumar , Juri Lelli , Paul Turner , Vincent Guittot , Quentin Perret , Dietmar Eggemann , Doug Smythies Subject: Re: [PATCH v2 1/2] x86,sched: Add support for frequency invariance Message-ID: <20191004114834.GE19463@hirez.programming.kicks-ass.net> References: <20191002122926.385-1-ggherdovich@suse.cz> <1906426.HDqaVa71mF@kreacher> <20191003121537.GR4536@hirez.programming.kicks-ass.net> <1990043.dY4KdrEkPr@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1990043.dY4KdrEkPr@kreacher> 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 Thu, Oct 03, 2019 at 07:53:49PM +0200, Rafael J. Wysocki wrote: > On Thursday, October 3, 2019 2:15:37 PM CEST Peter Zijlstra wrote: > > On Thu, Oct 03, 2019 at 12:27:52PM +0200, Rafael J. Wysocki wrote: > > > > + if (smp_processor_id() != 0) > > > > + return; > Well, but the smp_processor_id() check has nothing to do with whether or not > this is "core" or "atom" or something else, for example. It is dodgy to begin with, it hard assumes we boot on cpu-0. A 'initialized' state would probably be better.