Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1531892ybm; Thu, 23 May 2019 02:38:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqylzpNKF/rmTrHspL1sa8ivhxNWeA7eaRkgimcuuQ5lOevzPPAUphvH3B5OcST5a1EzmpNH X-Received: by 2002:a65:4349:: with SMTP id k9mr8090663pgq.243.1558604321486; Thu, 23 May 2019 02:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558604321; cv=none; d=google.com; s=arc-20160816; b=gNdWHwiJG9/mrM0vqxEz5JY5KwVW/cNwJLixKIgyfAVWJRIJscBFdPiA6NVD9q+qmO /NOPJQeOAR4KX/EDesT3+4qYNR0dzI0h6zpxxl3sFs2YLH6+wojiA6aZhnDKQEQpeJYT 4REvspPyBYpQL/rBZRvr22Ctc7B6NzEA2O6v6a6UxgXilzW9MTfKCXJ7uOB8IhCZSABs M+cqfMRavYk93cRGAg/hFTVOtucdSBG5h55mSfTXw053iESrruFVSCpMlY+WoQ2Ez9WE U73IBRhGNgOFINMLYItuuxp9zLRANd3fJBGG/RwOsjfjaJhnxocKMzCpOJLXPMHzfjqC t4PA== 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=qqQSRMiMy3VLNL7udKd7q+UVEQ7GcOPOYRV46JS3wFM=; b=AU1XEtpx6XJflU6NjwlbD9J90UX+QPa6M6J7yY9YYW9CEu1J7g4K1tRiT5GuyBeH5J 3SvwOTUlw2CgBnXf6OxKeoGgh8nLxnonI1+6Apfi9gWirCfXwUUZDfJA0oYnLVGLKAj+ rY/ugqNPHohZswdrXdjrQDYZD9xqXHBfFJdmurxkdCec2fkTKmATXeoxQ7Wv7hBbeZre iBLyv+pItJDluCbgLj22sjnaqwiffNOCAIUJUGGdB+fwNTbtRSXSGuLnGN2iajZXZp4G ud2spkUwiqrTFmgGBXMd1B7H7b9X/yr95Y4k/fe8GxLhO5mtZvtsbgGjZOHh5gDT5ff0 6LBg== 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 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 n11si29169457plg.248.2019.05.23.02.38.26; Thu, 23 May 2019 02:38:41 -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; 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 S1730406AbfEWJgA (ORCPT + 99 others); Thu, 23 May 2019 05:36:00 -0400 Received: from foss.arm.com ([217.140.101.70]:41522 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728309AbfEWJf7 (ORCPT ); Thu, 23 May 2019 05:35:59 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7B413341; Thu, 23 May 2019 02:35:59 -0700 (PDT) Received: from e107155-lin (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 835643F718; Thu, 23 May 2019 02:35:55 -0700 (PDT) Date: Thu, 23 May 2019 10:35:49 +0100 From: Sudeep Holla To: Atish Patra Cc: linux-kernel@vger.kernel.org, Jeffrey Hugo , Albert Ou , Andreas Schwab , Anup Patel , Ard Biesheuvel , Catalin Marinas , devicetree@vger.kernel.org, Greg Kroah-Hartman , Ingo Molnar , Jeremy Linton , linux-riscv@lists.infradead.org, Mark Rutland , Morten Rasmussen , Otto Sabart , Palmer Dabbelt , Paul Walmsley , "Peter Zijlstra (Intel)" , "Rafael J. Wysocki" , Rob Herring , Thomas Gleixner , Will Deacon , Sudeep Holla , linux-arm-kernel@lists.infradead.org Subject: Re: [RFT PATCH v4 3/5] cpu-topology: Move cpu topology code to common code. Message-ID: <20190523093549.GA13560@e107155-lin> References: <20190428002529.14229-1-atish.patra@wdc.com> <20190428002529.14229-4-atish.patra@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190428002529.14229-4-atish.patra@wdc.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 Sat, Apr 27, 2019 at 05:25:27PM -0700, Atish Patra wrote: > Both RISC-V & ARM64 are using cpu-map device tree to describe > their cpu topology. It's better to move the relevant code to > a common place instead of duplicate code. > > Signed-off-by: Atish Patra > Tested-by: Jeffrey Hugo > --- > arch/arm64/include/asm/topology.h | 23 --- > arch/arm64/kernel/topology.c | 303 +----------------------------- > drivers/base/arch_topology.c | 298 ++++++++++++++++++++++++++++- > drivers/base/topology.c | 1 + > include/linux/arch_topology.h | 28 +++ > 5 files changed, 330 insertions(+), 323 deletions(-) > > -void store_cpu_topology(unsigned int cpuid); [...] > diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c > index edfcf8d982e4..2b0758c01cee 100644 > --- a/drivers/base/arch_topology.c > +++ b/drivers/base/arch_topology.c > @@ -6,8 +6,8 @@ > * Written by: Juri Lelli, ARM Ltd. > */ > > -#include > #include > +#include I assume this was to avoid compilation errors, when I rebased I got conflict and I ordered them back alphabetically as before and hit the compilation error. The actual fix would be to include linux/arch_topology.h in linux/topology.h as you are moving contents of asm/topology.h which it includes. I did the change and get it tested by kbuild. See [1] Regards, Sudeep [1] https://git.kernel.org/sudeep.holla/linux/h/cpu_topology