From patchwork Wed Nov 27 10:29:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 180285 Delivered-To: patches@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp5914486ilf; Wed, 27 Nov 2019 02:29:28 -0800 (PST) X-Received: by 2002:a19:f510:: with SMTP id j16mr14778349lfb.30.1574850568776; Wed, 27 Nov 2019 02:29:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574850568; cv=none; d=google.com; s=arc-20160816; b=n2JYtgKsnYlwqLWy9GE/2r9EkCDNTD/FT28M/BXWun7SyEabf5/Y9Ww7l/mvj90bmb qmso0Xm1CfmhbpUG+ctYB/D5fKseS2Ct1I2VZmkCb/LvqF32z6tVntTiykrRJNUh7YFc bJzjhwtEEJedAxeC2rhF41t0f3JgM3JuYKV5tqJ2ixr+R1n79vr0nEXyoQjpVW6yELG/ 78SNAuvYBq/65iKWtqzDSh/ZujUCL70nE4HGHf0NtoxLopbL5iwzgxYFKSOd0rUvHVLt gNxAg9AN64AlS+vOMKZ+zIWZAhSMFmy1l5bDsGTlbOsmp7ApBGSg6uZgnpfFoSWWJRCA Y/oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pCpbFgjGEgfPklFZJxNcT3sX+taTfAQr4roju7E3lrg=; b=Ydt6Glt++6+iqJYma73SRJ6skoZKJGZmb8gPj5PDNNiAjiOkHSVD5ZgBVYvpIpLyZP 0UKkIk9kv9JHY9fo3tTvAG69X1+X1cEZ9VcHn1M0mT914K6p6Njfi2iAyGDf10EodMkO XqtSAXQoQSEiFZFtKONwvOMQ0jrjThes/TdVOsf12SHWVykh4wsdUNBTra+o3eF0gBt3 Is6xo5w76xhYJ5oZnJb/iJa+Ez3QXIn9d6vmwlrY0QBMntqiTbU3ESkMaV5IhdlfcM6C PIBXohR31YiHZlZEntJSo61L0middbwuOwXSD0CJtoyosskhhzs0tH8ajYKdwIzvNpl/ 7i+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F6S0qqMG; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id k19sor7911374ljj.36.2019.11.27.02.29.28 for (Google Transport Security); Wed, 27 Nov 2019 02:29:28 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F6S0qqMG; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=pCpbFgjGEgfPklFZJxNcT3sX+taTfAQr4roju7E3lrg=; b=F6S0qqMGVu24iWB5xlEUSenjorh1CqR7WhxPvplxFREi9q67F98DX7cpAJ0g1E3MEG x2OgkDcfshrPloOeK6km8it8DJciTEPHEKCPWYCEJgDI7fd8OhHudj7Wu4ZThoWMAjk0 +BSufJfudRGkRs8vxAs1hjbf7XsUFeSbpJgvCwtyxAqe7ZboPbj8K6QqqZk4aNFAlxqD EFrKZ7dQwLv6pcbRk/6RXsBH9zT557UEKXxHVX4LXIY7NnK/eZmRJb9qIPgKCwiG8uko Oov56PJE88Y/KVECS1Wbg9wwXvvSPUJYZFt8UZ7ui5CX2WJsFUq0pdp0NFWzt5/TUmOW ZaSA== 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=pCpbFgjGEgfPklFZJxNcT3sX+taTfAQr4roju7E3lrg=; b=DX8cZJ4lwR29U5kesOjVr/FS1+UqQuQ2MuViEP+qBm7xMMv56L0r41K6JRjAKJciR9 uyl7riUOyXe69vFVnLLgtsx80LjxyQ4iiLa8i0cM5MtCEaN56RVZBtM0VtUDqcEQrISi weHDcRseXjg57nwY24jt1B8D1WaFWHvG4sJ5NLwcnZwnGkbrGa+1wMK1o5FhSzKecW7L VK5FmtCOOhEGG3R99dWlbMY0h45GknJ6Gy2ivj8r1LP29s76xWIs4UlaoCAaiPcw7zPU 3zMzybk9V/CEhiIzRivPwQxoQnPMD8Tl1K6VBW3U+JErGfgLbGiVC525lxE1ZG0myCZ2 ynSw== X-Gm-Message-State: APjAAAXdxbSfDahw+mdifFgmvKPaXTxw7vx/bQCelZwCoMvx07xdJOgn 7Cz0GDDA2llY+2AEEuqpnQy+8QE1 X-Google-Smtp-Source: APXvYqzTXEyPT0SJHyyvevP9BWE50w3KY6/GovtjKu17I96JMN6sVEEIl4LfjTP/gkozAdXLVnmHfw== X-Received: by 2002:a2e:9083:: with SMTP id l3mr31130772ljg.127.1574850568391; Wed, 27 Nov 2019 02:29:28 -0800 (PST) Return-Path: Received: from uffe-XPS-13-9360.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id t9sm6868260ljj.19.2019.11.27.02.29.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2019 02:29:27 -0800 (PST) From: Ulf Hansson To: Sudeep Holla , Lorenzo Pieralisi , Rob Herring , linux-pm@vger.kernel.org Cc: "Rafael J . Wysocki" , Daniel Lezcano , Mark Rutland , Lina Iyer , Vincent Guittot , Stephen Boyd , Andy Gross , Bjorn Andersson , Kevin Hilman , Ulf Hansson , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v3 07/13] cpuidle: psci: Support hierarchical CPU idle states Date: Wed, 27 Nov 2019 11:29:08 +0100 Message-Id: <20191127102914.18729-8-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191127102914.18729-1-ulf.hansson@linaro.org> References: <20191127102914.18729-1-ulf.hansson@linaro.org> 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 Reviewed-by: Sudeep Holla --- Changes in v3: - None. --- drivers/cpuidle/cpuidle-psci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/cpuidle/cpuidle-psci.c b/drivers/cpuidle/cpuidle-psci.c index 761359be50f2..830995b8a56f 100644 --- a/drivers/cpuidle/cpuidle-psci.c +++ b/drivers/cpuidle/cpuidle-psci.c @@ -86,8 +86,7 @@ static int __init psci_dt_cpu_init_idle(struct device_node *cpu_node, return -ENOMEM; for (i = 1; i < state_count; i++) { - state_node = of_parse_phandle(cpu_node, "cpu-idle-states", - i - 1); + state_node = of_get_cpu_state_node(cpu_node, i - 1); if (!state_node) break;