From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756228AbaIQQs5 (ORCPT ); Wed, 17 Sep 2014 12:48:57 -0400 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:59180 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756193AbaIQQsz (ORCPT ); Wed, 17 Sep 2014 12:48:55 -0400 Date: Wed, 17 Sep 2014 17:48:50 +0100 From: Mark Rutland To: Olof Johansson Cc: "hanjun.guo@linaro.org" , Catalin Marinas , "Rafael J. Wysocki" , "grant.likely@linaro.org" , Will Deacon , "graeme.gregory@linaro.org" , Arnd Bergmann , Sudeep Holla , "jcm@redhat.com" , Jason Cooper , Marc Zyngier , Bjorn Helgaas , Daniel Lezcano , Mark Brown , Rob Herring , Robert Richter , Lv Zheng , Robert Moore , Lorenzo Pieralisi , Liviu Dudau , Randy Dunlap , Charles Garcia-Tobin , "linux-acpi@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linaro-acpi@lists.linaro.org" Subject: Re: [PATCH v4 01/18] ARM64: Move the init of cpu_logical_map(0) before unflatten_device_tree() Message-ID: <20140917164850.GB7983@leverpostej> References: <1410530416-30200-1-git-send-email-hanjun.guo@linaro.org> <1410530416-30200-2-git-send-email-hanjun.guo@linaro.org> <20140915061632.GA26649@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140915061632.GA26649@localhost> Thread-Topic: [PATCH v4 01/18] ARM64: Move the init of cpu_logical_map(0) before unflatten_device_tree() Accept-Language: en-GB, en-US Content-Language: en-US acceptlanguage: en-GB, en-US User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 15, 2014 at 07:16:32AM +0100, Olof Johansson wrote: > On Fri, Sep 12, 2014 at 09:59:59PM +0800, Hanjun Guo wrote: > > It always make sense to initialize CPU0's logical map entry from the > > hardware values, so move the initialization of cpu_logical_map(0) > > before unflatten_device_tree() which is needed by ACPI code later. > > > > Signed-off-by: Hanjun Guo > > Acked-by: Olof Johansson > > With or without needs for ACPI, I don't think there's any reason for > this code to not go in now. I can see this being of use to psci_init() where I'd like to check MIGRATE_INFO_TYPE and MIGRATE_INFO_UP_CPU early on for systems with PSCI 0.2+. So moving it at least that early sounds good to me. Acked-by: Mark Rutland Mark.