Message ID | 20191010113937.15962-8-ulf.hansson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp2186328ocf; Thu, 10 Oct 2019 04:40:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTn6flZtUYQzhm2njdmTtdQte57FQfWEG0HNU/0NWLjjgpFYJJ7Mjaa4UaQ7feWoSsIkMi X-Received: by 2002:aa7:d5d3:: with SMTP id d19mr7454272eds.213.1570707620351; Thu, 10 Oct 2019 04:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570707620; cv=none; d=google.com; s=arc-20160816; b=EQiDAYAuDhDDOgfgWYZkDz0t1HSPTk98A6u5uYO0SnWR0591oDy/YUO4+iZqt0ZPTb 1JDoMs5hzxYx2JGrQnAVkHDJYVUsTrTFyqYER18/fxUsocg8TTkl52or/mG2+YxJLk2M ony8jv8/XepmfWtLSSxrhSN9ZFuq+/qaMeuN8v9P6D/kinh4pgzXjwrhRJrTx7Vl9yH1 YHd060Li1OXFVv/qE7ODrlIGSnKPfm+vI8vcZFszj6YUQaTHS1bHtTIYkR1ks0OhUfUA vu5re0HzjLSAP604NJghUC8hYidHFOXDtAcbAciu6N3wT12bHnYb9gXMM+d1PIVAtD74 Jehw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=nvXOpVcM/IpothdU1ZKoTmNHFS7WJStir72tye3UWWE=; b=I4OAOgOullXjZ2CDZgBs3D+sWLZUmEN6TSK/KYDCtnvO+xOgKPBncvakexz7Q1NPHT 7q5MVFSSD2q3GPnXTdlHt0HIprj2PW7yjaLCi8ForGpOxdsd0fHGzKYpSC0eeq9+nkaT dBwLZF7ajRjsN233f2pnWPRYXC1PtU/LeAW4vKyBNNaf7ZMOvVoSpjU83oVxjcyXT00g Pquh8m9eXbHslCCw3x6aaUAKJkRFs+HlRDT5A9HD6JbRL9iMhYvdeQPDKxJudjispLMa XKtWcMz2YDUrNNdBB86P/ArkcGLzfS6DmlugEGHMLi7BQObJ8DrhhqeeipAsND58hlXR eZcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EUAy07fB; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-arm-msm-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c60si3016856edd.327.2019.10.10.04.40.20; Thu, 10 Oct 2019 04:40:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EUAy07fB; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732851AbfJJLkT (ORCPT <rfc822;thara.gopinath@linaro.org> + 15 others); Thu, 10 Oct 2019 07:40:19 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:33994 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732671AbfJJLkT (ORCPT <rfc822;linux-arm-msm@vger.kernel.org>); Thu, 10 Oct 2019 07:40:19 -0400 Received: by mail-lj1-f195.google.com with SMTP id j19so5885903lja.1 for <linux-arm-msm@vger.kernel.org>; Thu, 10 Oct 2019 04:40:17 -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=nvXOpVcM/IpothdU1ZKoTmNHFS7WJStir72tye3UWWE=; b=EUAy07fBsO1Wz5z3ljchfWd2sfdTxk2utOmWleJB60APniuQ0U3RAzfQdhfU/BWbU3 /PpxRmMYJ+bhc8H7y4zsGtOLcdqr9mF9vHT+BAF1w2huN0P/nPF6ZTE794efcWFcaxrq 82N6hkfxHfNP9zDCtgRDb7F7P1918eEHfSkhI8PK4xqSZVgc88lGjJ53etEeAcHIcwMP ytQqCscNLLgc+xJioNh+2NOpa9q7QFuCq+3m59fEwdALI0MT6g8ITkIlJ/WS9+aWE+B4 Z0vwxgptGD1RDuLRlsFVMW4k0nYmjTmLaNA4g29yjtIoKOgj6OhnsLkPjHkVD+6KZGZ4 qDXQ== 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=nvXOpVcM/IpothdU1ZKoTmNHFS7WJStir72tye3UWWE=; b=Sc1LxaF5Tilz3HCLz4iDFEmOuuDKZZD/XawoxQkiBeUPBt/AMih+IsGfuPWrCn25yf 9awjqzwoH/CZcJ/R6kmS/3khEby0x9HgwZtbHXUIcJ+2fB0Euc18nt6DFI60l0CvitHM iK7ucE8axbw3PMj2IaqMiEnZkMu6BjLPrly2H6iKOZadpp4/0jI1K3oHTkxjASk4Mitz x3WGwoYQ9aCwDW9PyoxdC3Ee0ABiUpuo2amQyKKUmwPh3sT0iOBLZCidvqnQwzb8Knpn 9E4VtjDuAJnMVjcSmUuV8kT3Ep9OK0fuBy/KTV2UavRw+SEz5bHssInFtfvaarzBi0hc Cujw== X-Gm-Message-State: APjAAAUBNlTcHMKntjuTyoZsyWYC7xra7Wdpfz+u4E9CZond9LGXl0BP sqjfAztKrh404BCjGvcbQT2F7g== X-Received: by 2002:a2e:89c4:: with SMTP id c4mr5832114ljk.65.1570707616291; Thu, 10 Oct 2019 04:40:16 -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 p3sm1168937ljn.78.2019.10.10.04.40.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2019 04:40:15 -0700 (PDT) From: Ulf Hansson <ulf.hansson@linaro.org> To: "Rafael J . Wysocki" <rjw@rjwysocki.net>, Daniel Lezcano <daniel.lezcano@linaro.org>, Sudeep Holla <sudeep.holla@arm.com>, Lorenzo Pieralisi <Lorenzo.Pieralisi@arm.com>, Mark Rutland <mark.rutland@arm.com>, Lina Iyer <ilina@codeaurora.org>, linux-pm@vger.kernel.org Cc: Rob Herring <robh+dt@kernel.org>, Vincent Guittot <vincent.guittot@linaro.org>, Stephen Boyd <sboyd@kernel.org>, Bjorn Andersson <bjorn.andersson@linaro.org>, Kevin Hilman <khilman@kernel.org>, Ulf Hansson <ulf.hansson@linaro.org>, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 07/13] cpuidle: psci: Support hierarchical CPU idle states Date: Thu, 10 Oct 2019 13:39:31 +0200 Message-Id: <20191010113937.15962-8-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191010113937.15962-1-ulf.hansson@linaro.org> References: <20191010113937.15962-1-ulf.hansson@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: <linux-arm-msm.vger.kernel.org> X-Mailing-List: linux-arm-msm@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/cpuidle/cpuidle-psci.c b/drivers/cpuidle/cpuidle-psci.c index 1195a1056139..5c30f23a8a7b 100644 --- a/drivers/cpuidle/cpuidle-psci.c +++ b/drivers/cpuidle/cpuidle-psci.c @@ -85,7 +85,7 @@ static int __init psci_dt_cpu_init_idle(struct device_node *cpu_node, return -ENOMEM; for (i = 0; i < state_nodes; i++) { - state_node = of_parse_phandle(cpu_node, "cpu-idle-states", i); + state_node = of_get_cpu_state_node(cpu_node, i); if (!state_node) break;
Currently CPU's idle states are represented using the flattened model. Let's add support for the hierarchical layout, via converting to use of_get_cpu_state_node(). Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> --- drivers/cpuidle/cpuidle-psci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1