Message ID | 1523531671-27491-26-git-send-email-ulf.hansson@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 36F24603B5 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 12 Apr 2018 11:31:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 282A0287E1 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 12 Apr 2018 11:31:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C826287E3; Thu, 12 Apr 2018 11:31:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6C064287E1 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 12 Apr 2018 11:31:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=x4Rqld12RyzPqthA/zUt7UaE6VC0VXFihT6GZsr+bM4=; b=ngGNA3N68uavAcwwOCK+l/Ne8+ 0G5e+CkOqVT9cqHkCWy5+qe+mG0rWt8z80PrJ2Nts5V64oxF7tJgrZ1ileojsDzv+k0wPPkcH4PBh AbUhyohmZeK40RD1/dboiM9CcJLkzmhtrmOKlQdzHfUGMT9LTBnxE3dOZPKEct/c2CgX48cG8rIsf hrYHWb2xNBjlojVpanS6xBIC1MvItWhDSVWm/+tmINbr9B6WjTEGuiM1iYDeuSpgM9q0APye2Bbc6 TxGEZhaZ03cwsEN43nPEXZSVOKvgHlKhgF3fCcUfCejC8gfboQ3FP2/cXGEHKxkpYbhNxSQCRMUWj mNimqAMQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f6aS3-00028m-QC; Thu, 12 Apr 2018 11:31:39 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f6aCK-0006s4-8e for linux-arm-kernel@lists.infradead.org; Thu, 12 Apr 2018 11:15:27 +0000 Received: by mail-lf0-x241.google.com with SMTP id v207-v6so7115188lfa.10 for <linux-arm-kernel@lists.infradead.org>; Thu, 12 Apr 2018 04:15:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yNE497aPz9W7UIFPW6KZihJP9jsgHg4yN9657mM9uu8=; b=cnba7ECuwcjsQqGPGMf2qzrwzWe73bxAYgwJTcIqxZ46YracDBKBiGbd9OX3PGhdWW FGhNBmfdqROjt2C3SizH3gNKvTnIXb517Sq5k7ww57QVqAqw7qT12cg7tx+3/F5TXGr0 nrbflIzRM9EMLGkGlxPzMAd0CT9+pjRC5pMVE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yNE497aPz9W7UIFPW6KZihJP9jsgHg4yN9657mM9uu8=; b=SR0F3FXThvGt6TcxokUFXA6dotV9CzWra80ZSJuAWrk8vFwCHokrsw1bKUQUpyj8mz q1CH1pmT0T6I2o6xpVsQt01QlW4vtZ0959/NBQzMixlCwYLxGfDKG8XcVasfzAUEtDzS U2sVnb1zlFvsUouBAoPvtOZQr+bbx8XdiZWKxi7PcSUWdxEIrGg8zkZC0a5BByh2PiMa 6jxvYwyr1yQZ8LcLor7lKTNZPeQL9lTG2ECQfywqh9CBToTqAqp/avlD6M8y6U8fJh4C svu5h9/MMmNR+DCcwIHlkbSw4v5BoBZ4MBajVO3j2z9emCNtu1tfbtl00zfHcK6OJmB/ zMPg== X-Gm-Message-State: ALQs6tD/rKi0yjuBQyGmU7d/UG86GRFajThyvd1PsvHZXdmau4kSqQNt AEA8HJB5BvGpv0BDAZrN0vV7KQ== X-Google-Smtp-Source: AIpwx49DG9EYClDMCIUPwXQrZhmdbQ6jmm3aGvxM2QAaSkhHv3X60DWSDOY0nMnuH++zjcwbcCOKGw== X-Received: by 2002:a19:d720:: with SMTP id o32-v6mr5110601lfg.89.1523531722532; Thu, 12 Apr 2018 04:15:22 -0700 (PDT) Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id r29sm543187lje.72.2018.04.12.04.15.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Apr 2018 04:15:21 -0700 (PDT) From: Ulf Hansson <ulf.hansson@linaro.org> To: "Rafael J . Wysocki" <rjw@rjwysocki.net>, Sudeep Holla <sudeep.holla@arm.com>, Lorenzo Pieralisi <Lorenzo.Pieralisi@arm.com>, Mark Rutland <mark.rutland@arm.com>, linux-pm@vger.kernel.org Subject: [PATCH v7 25/26] arm64: kernel: Respect the hierarchical CPU topology in DT for PSCI Date: Thu, 12 Apr 2018 13:14:30 +0200 Message-Id: <1523531671-27491-26-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523531671-27491-1-git-send-email-ulf.hansson@linaro.org> References: <1523531671-27491-1-git-send-email-ulf.hansson@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180412_041524_374959_5B5735E6 X-CRM114-Status: GOOD ( 15.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Ulf Hansson <ulf.hansson@linaro.org>, Vincent Guittot <vincent.guittot@linaro.org>, Juri Lelli <juri.lelli@arm.com>, Geert Uytterhoeven <geert+renesas@glider.be>, Kevin Hilman <khilman@kernel.org>, Stephen Boyd <sboyd@kernel.org>, linux-arm-msm@vger.kernel.org, Daniel Lezcano <daniel.lezcano@linaro.org>, Will Deacon <will.deacon@arm.com>, linux-kernel@vger.kernel.org, Lina Iyer <ilina@codeaurora.org>, Rob Herring <robh+dt@kernel.org>, linux-arm-kernel@lists.infradead.org, Catalin Marinas <catalin.marinas@arm.com>, Thomas Gleixner <tglx@linutronix.de>, Lina Iyer <lina.iyer@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 30ad2f0..574a504 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -331,6 +331,9 @@ static int __init topology_init(void) { int i; + if (acpi_disabled) + psci_dt_topology_init(); + for_each_online_node(i) register_one_node(i);
To let the PSCI driver to parse the CPU topology in DT, as to create CPU PM domains in case the hierarchical layout is used, let's call psci_dt_topology_init() from the existing topology_init() subsys_initcall. Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will.deacon@arm.com> Cc: Lina Iyer <ilina@codeaurora.org> Co-developed-by: Lina Iyer <lina.iyer@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> --- arch/arm64/kernel/setup.c | 3 +++ 1 file changed, 3 insertions(+)