From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C907AC432C0 for ; Wed, 20 Nov 2019 12:30:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9684D22519 for ; Wed, 20 Nov 2019 12:30:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729754AbfKTMaO (ORCPT ); Wed, 20 Nov 2019 07:30:14 -0500 Received: from foss.arm.com ([217.140.110.172]:38652 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729732AbfKTMaO (ORCPT ); Wed, 20 Nov 2019 07:30:14 -0500 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 04206328; Wed, 20 Nov 2019 04:30:14 -0800 (PST) Received: from [10.1.194.51] (macbook.cambridge.arm.com [10.1.194.51]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 12C113F703; Wed, 20 Nov 2019 04:30:12 -0800 (PST) Subject: Re: [PATCH] arm: Fix topology setup in case of CPU hotplug for CONFIG_SCHED_MC To: Sudeep Holla Cc: Atish Patra , Russell King , Morten Rasmussen , Lukasz Luba , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20191120104212.14791-1-dietmar.eggemann@arm.com> <20191120110911.GA31600@bogus> From: Dietmar Eggemann Message-ID: Date: Wed, 20 Nov 2019 12:30:11 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191120110911.GA31600@bogus> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20.11.19 11:09, Sudeep Holla wrote: > Hi Dietmar, Lukasz, > > Thanks for digging this bug and fixing it. > > On Wed, Nov 20, 2019 at 10:42:12AM +0000, Dietmar Eggemann wrote: [...] >> @@ -231,14 +230,14 @@ void store_cpu_topology(unsigned int cpuid) >> cpuid_topo->package_id = -1; >> } >> >> - update_siblings_masks(cpuid); >> - >> update_cpu_capacity(cpuid); >> >> pr_info("CPU%u: thread %d, cpu %d, socket %d, mpidr %x\n", >> - cpuid, cpu_topology[cpuid].thread_id, >> - cpu_topology[cpuid].core_id, >> - cpu_topology[cpuid].package_id, mpidr); >> + cpuid, cpuid_topo->thread_id, cpuid_topo->core_id, >> + cpuid_topo->package_id, mpidr); >> + > > [nit] The above is a clearly cosmetic cleanup and shouldn't be part of > this fix as they will be backported automatically. So I prefer to drop > this or make it separate patch if required. I can get rid of this cleanup in v2. Thanks for the review!