Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp483562ybz; Wed, 15 Apr 2020 12:28:55 -0700 (PDT) X-Google-Smtp-Source: APiQypLOrjypbywuUaksrdSb/Hhz8fYNyaWqi9GTnpdv9cW0yb4e0dzqrSYCyikX+RI4HwL6mzbr X-Received: by 2002:a50:cc87:: with SMTP id q7mr25807767edi.96.1586978935171; Wed, 15 Apr 2020 12:28:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586978935; cv=none; d=google.com; s=arc-20160816; b=x3uIG2bAe21QF1CFq5luWvhbt26JxKFEKXLsdsbyDo8ZAoxoujV4L7lJG9o4d2jmlu YAmGIyPJ0nJZyAYvRLipO2Vz6AQiRQZ4L+g09e40Ci1TymnUA7UyIIdC06FOCK+dNLqp q23d+S/kbv66aeM3ZyPy4jFPoj7cyWuRSOfGPuxP76wk4rGrLGfm3LvLuQusK8tuOUaq Vy8CInBZQ83q+CZ0RSVmQdJB3AtvNKFgmsDCUt683Xawbwjcb8iLv9jrAzLm/ttjp2xu yGwHb+5+KiwEBAXApT0zx+MNiInYcOQVPUJ7j1OE+P29xCwmNi8rDYD2UHovUQDfDrFS TSig== 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; bh=go6QFvJSXco0PKWH0WLTjPaz/W5By8jrpgpVs7hJer0=; b=vBA4tiU5o2qujInTNJMYxh9YKxwArr9JvZyf6KEYekNu1M5D0x29AIMVv88KRRwvAo zR6YTvWQ3l8goa018zKGlnQG7TwDK79c/K+c7yecwhDO2tUvJQiNGoqZA6tF54WH5PTh NEiGHz2Fh0JUO5+PzEikv6NaS2f74PFhS4Bz461rVqQYVe1u8C0iGVB8LEneoStagmi7 wHN3Ec44dIZKz4uwmDTQJKdxZgkWtYFwm0K9iOGTgfg7XT+qSTte7+gpsgEKjJYhj666 SG0x16C7ZU/2pyz/tsh9aOooauIxVIbxkIw24gasY4BwjiUSc5us5d8BDvwcAVGVdJTa rwCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for 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 w8si2764599edt.221.2020.04.15.12.28.31; Wed, 15 Apr 2020 12:28:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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; spf=pass (google.com: best guess record for 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 S2436759AbgDNIZk (ORCPT + 99 others); Tue, 14 Apr 2020 04:25:40 -0400 Received: from foss.arm.com ([217.140.110.172]:50906 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436753AbgDNIZe (ORCPT ); Tue, 14 Apr 2020 04:25:34 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 81E131FB; Tue, 14 Apr 2020 01:25:32 -0700 (PDT) Received: from bogus (unknown [10.37.12.71]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 855603F73D; Tue, 14 Apr 2020 01:25:23 -0700 (PDT) Date: Tue, 14 Apr 2020 09:25:20 +0100 From: Sudeep Holla To: Jiaxun Yang Cc: linux-mips@vger.kernel.org, dietmar.eggemann@arm.com, Thomas Bogendoerfer , Huacai Chen , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Florian Fainelli , Robert Richter , Greg Kroah-Hartman , "Rafael J. Wysocki" , Daniel Lezcano , Thomas Gleixner , Jason Cooper , Marc Zyngier , Paul Burton , Allison Randal , Enrico Weigelt , Kate Stewart , Vladimir Kondratiev , Alexios Zavras , Paul Cercueil , Zhou Yanjie , =?utf-8?B?5ZGo55Cw5p2wIChaaG91IFlhbmppZSk=?= , YunQiang Su , Arnd Bergmann , Serge Semin , Matt Redfearn , Richard Fontana , Steve Winslow , afzal mohammed , Peter Xu , Kamal Dasu , Oleksij Rempel , Sudeep Holla , Mike Rapoport , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, oprofile-list@lists.sf.net, linux-pm@vger.kernel.org Subject: Re: [PATCH v2 03/11] arch_topology: Make it avilable for MIPS Message-ID: <20200414082520.GB6459@bogus> References: <20200412032123.3896114-1-jiaxun.yang@flygoat.com> <20200412032123.3896114-4-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200412032123.3896114-4-jiaxun.yang@flygoat.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 12, 2020 at 11:20:33AM +0800, Jiaxun Yang wrote: > Simply drop unnecessary archtecture limitions and add dummy > function for platforms without OF support. > As some of the functions are conflicting with Arm's platform > implementations, we mark them as weak. > > Signed-off-by: Jiaxun Yang > -- > v2: Use weak instead of ifdef to exclude functions for Arm. > --- > drivers/base/arch_topology.c | 116 ++++++++++++++++++----------------- > 1 file changed, 60 insertions(+), 56 deletions(-) > > diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c > index 4d0a0038b476..13dc4fbf043f 100644 > --- a/drivers/base/arch_topology.c > +++ b/drivers/base/arch_topology.c > @@ -143,57 +143,6 @@ void topology_normalize_cpu_scale(void) > } > } > > -bool __init topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu) This function is not under any #ifdefery and you are adding it but the commit message indicates opposite. Please state the reason why this needs to be moved under #ifdef -- Regards, Sudeep