From patchwork Thu Aug 12 04:35:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 495949 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp5639882jap; Wed, 11 Aug 2021 21:36:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8cyiWpg5Wkzd7cFqwSezByXcuyx6QSxt572Rw7Icgcwmmp2J2ZKQ75cfLw2yW38j8oiIo X-Received: by 2002:a05:6402:408:: with SMTP id q8mr3107156edv.13.1628742972211; Wed, 11 Aug 2021 21:36:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628742972; cv=none; d=google.com; s=arc-20160816; b=YzQtaencQ4kGk8174vZFAETrqalhjZJprlP43ACWu96oMjWfok9jpDAYUWJrsz/r9E +QjX0oOIrk8ow77FzxsieSs4RJyEWq01d2xEkAWhTRrb9COzWAigNWNFItLck0G5silx 7GOKWQRIhUBz8u3aoS4ujtKKjR7/u9trFVwaEnMAL864FhOOGsPlunWSKd2OnkIb8eGj sAXOTVUZVVrkgPuExX8rcsvAWIYoF0CFwx6TbrJqYNXlm/5zXSwHY74dlI2fvGhh8YmI +4h/5aH2lGX5T45iiXfV/oK1J5FS0UtL8TNAevXXh0wtPtLHCNH8Kc4VkoQxOCn1kATa IuZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JOkHp31PCeB99M1dSxN1Du6uw4AQKsapMxFixRcFEa0=; b=XJVZhx9KGZSyHeoo/8c0JrIYDrpIdeQbJdnEHHKwfDVXDuRMgIVQrn+hzVqhv4GZsp CucdnZ6hpvyg4qaABTZ2S/UiKFauHUItHOSpuJVkU0F4DhhQeD3RAUUndmh3i8ED01ob qOFuMYy4cHcrYrPfT4UWO0Xzg7K3QaWVGORGElXN+HgRZVz7O0YYlSzBKOY5Clh09u17 QpWP7a1e0TYllHZN7Yh3/S3/rau3wcs3yZV+w1sWzebUT2XrOo8XRRYnySxYLlScgb3k rtK5vN6d7tILSW4t/R+ZCAhhf58k375zVHhUVG1YCwlWt3Zeho4DCfOvSXjewcvuFxHF SCpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Kh7hj4I7; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w24si1149889eja.172.2021.08.11.21.36.12; Wed, 11 Aug 2021 21:36:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Kh7hj4I7; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 S234040AbhHLEge (ORCPT + 7 others); Thu, 12 Aug 2021 00:36:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234057AbhHLEgc (ORCPT ); Thu, 12 Aug 2021 00:36:32 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A9CCC0617A4 for ; Wed, 11 Aug 2021 21:36:03 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id cp15-20020a17090afb8fb029017891959dcbso13235692pjb.2 for ; Wed, 11 Aug 2021 21:36:02 -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 :mime-version:content-transfer-encoding; bh=JOkHp31PCeB99M1dSxN1Du6uw4AQKsapMxFixRcFEa0=; b=Kh7hj4I7h5CBlthAjIqogCoHqEsTXGwRK33ywj/3LXMyBATvxFhFWnw3YPLcQN7O8w 7QjH4GDLQShi7mobqrYD8nw0176v1Xpc5uvJUorIClB9Ym8UAEYjVryjjeHzLIYX9dpl XGvTT0EZ5f0r/28shwGhJzElGs0BnhohuWx5xkLbOaLjK1oS54dDiYl2A5x04CNBGlZu gvCRC/3zVpYzUhuhHpDUYiRT+01GNbz1NU8XhIgcTJJT62iN2wRbkCxN5P+svmojj6lk XezXTEQcRWc3vVYfXyVyRPh/4X/EwnCyDiMg69Rn7Hc5vqSuNtSqiH72uRlZNV8Lw1pE C9Ew== 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:mime-version:content-transfer-encoding; bh=JOkHp31PCeB99M1dSxN1Du6uw4AQKsapMxFixRcFEa0=; b=tIqqVj6z9HMjqytu4HkdCUe6dOC4X+I5fYgsyR8pEkhGt81T7zEGjX+regbCJV8ucy rUJVRbglHpdklGyfP9pHVl/HvpXRe7ryKtWhrYgxMV76+IQoDwQDYkcbj+2LJeW6BTaS My9svAk4enT7917VvyTh2HNMy+qATwgQc1J63s5/YbYkEkbVPq4e5Cv85SJDwSB7KKZO yHkcvBe6IhEHvnFkRy5GaNJpL1f2XTfw1Xe53ZiZyAKkaPPxFn4d6kvG58mrbAFsuzY6 Gk6nWZr2SR6IMgoxQumkrBxXjXqOd/R2U8ifkB2uUw2D/bANGdS/GFbUEIy/gFfmUjdH B0gg== X-Gm-Message-State: AOAM532HM5czE185lOTTI9Uzzdlei3EMg3RHid69YX3fGRuIQUVtR2L7 CcytxPe2C4hHN8vynY2e2x/4Ug== X-Received: by 2002:a17:90a:4285:: with SMTP id p5mr2373269pjg.162.1628742962600; Wed, 11 Aug 2021 21:36:02 -0700 (PDT) Received: from localhost ([122.172.201.85]) by smtp.gmail.com with ESMTPSA id z131sm1353426pfc.159.2021.08.11.21.36.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 21:36:02 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Vincent Donnefort , lukasz.luba@arm.com, Quentin Perret , Andy Gross , Bjorn Andersson , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V3 6/9] cpufreq: qcom-cpufreq-hw: Use .register_em() to register with energy model Date: Thu, 12 Aug 2021 10:05:19 +0530 Message-Id: X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Set the newly added .register_em() callback with cpufreq_register_em_with_opp() to register with the EM core. Signed-off-by: Viresh Kumar --- drivers/cpufreq/qcom-cpufreq-hw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.31.1.272.g89b43f80a514 diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c index f86859bf76f1..c2e71c430fbf 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -362,8 +362,6 @@ static int qcom_cpufreq_hw_cpu_init(struct cpufreq_policy *policy) goto error; } - dev_pm_opp_of_register_em(cpu_dev, policy->cpus); - if (policy_has_boost_freq(policy)) { ret = cpufreq_enable_boost_support(); if (ret) @@ -412,6 +410,7 @@ static struct cpufreq_driver cpufreq_qcom_hw_driver = { .get = qcom_cpufreq_hw_get, .init = qcom_cpufreq_hw_cpu_init, .exit = qcom_cpufreq_hw_cpu_exit, + .register_em = cpufreq_register_em_with_opp, .fast_switch = qcom_cpufreq_hw_fast_switch, .name = "qcom-cpufreq-hw", .attr = qcom_cpufreq_hw_attr,