From patchwork Thu Aug 12 04:35:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 495951 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp5639920jap; Wed, 11 Aug 2021 21:36:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb11N9mnT7sqZYSEubZs938saPG4mk9SCjk/RcuVEd8L2EfMSak2QIUbNnWjmnW3cztG+K X-Received: by 2002:a05:6402:138d:: with SMTP id b13mr3139946edv.355.1628742975326; Wed, 11 Aug 2021 21:36:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628742975; cv=none; d=google.com; s=arc-20160816; b=e76lZLkahD8w8sk38MC9c12XuJo/xy/JufvfMyK1H0aw7aQrTzvf5/t8T0fXIBI0Rl IBHuS1cnf60W2OpC3dplPy4gYRwGnwQIUVPSa5261H1tsFQnA1qF1ko70QZQOxY11Zae iTuobxoBYbnznuTMGubc7U1M7i31JYLMiNWcgCGwPAHhQ2i6TgtYu8UqG+lNAZIpTfth 8Q+rXjXeGXfgLNWmiriD3jncXzXFuYI4w8euET1O3Xg0R7yR2/yRlz+ZisgirwrJGZYY ne1DF6NZNU7cUs38Wgo2D1ANH1EttWQ5uF/gk+xygdmI3FhN19O7ny89jUn/yALwRVgj L3dA== 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=6wofbpP2XHH8vKqCJvAlC0rsCzyQ6IN16xqpsQAu78c=; b=PTmBavqgxKufThA+MMf+ko9a9bs+cpx/73XqiLa8rajEmn7ZNOcr0lFkOlWWhP1vMF FME5UyzlY/zyTcIkylaOf1SJ80zVZ2pjjzZrzIecgi7Pgm/qtqG/31vi3pHdHSdUxvU6 BrOlefqX2JO/PUpvMc+sN9oar1ANAKd2igKBfWkq0Hxicwu7SR3FzwuU78KFDnT7S4Np Yfe2EsEAg+DWCqH8GzJmyN3E7xw5G2OStXaTJEEOF2f5vMbJB8o3sxruX6v/yvjeWGa1 a/VhG8Ex3Vlk2MLJl1x5DhOODIcIxInKjEHv8MDPZdP7DSdei+TenkskcRbEgbSzFZLp tAhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kcTGTOMu; 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.15; Wed, 11 Aug 2021 21:36:15 -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=kcTGTOMu; 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 S234093AbhHLEgi (ORCPT + 7 others); Thu, 12 Aug 2021 00:36:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234133AbhHLEgc (ORCPT ); Thu, 12 Aug 2021 00:36:32 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC7ACC0617B1 for ; Wed, 11 Aug 2021 21:36:05 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id j1so7340122pjv.3 for ; Wed, 11 Aug 2021 21:36:05 -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=6wofbpP2XHH8vKqCJvAlC0rsCzyQ6IN16xqpsQAu78c=; b=kcTGTOMugFVsFi9+hhyJu2RhkTevTNPQoau6mbfxI1ob4Xd98YMMTlWa4HAVxbnYZF 0zCmJXMZXbZw00yPhX2lYZyZua96iQxKSmxYzxFaQxfoHY2L3Ye9awQnnl4E874fpAvy TqV1TxaMgS0kcmXxjvAOJbK9Eryr8xabf7A5CjzFtJ2YM7UI8zxqXn0EpKJDfFGjGHWJ tf6goZyfThDvJNaFZRj008upYFfeQoE6+ngyRrnr910bX800SG1RDMvpXi7lK7uRfnK/ PK08nYK1MomznKkiawoMEmkuE7JCXNp8mnV3w3z1Wlb2WwZYV6b6j6PMFIAQ8OfYaZrs jFrg== 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=6wofbpP2XHH8vKqCJvAlC0rsCzyQ6IN16xqpsQAu78c=; b=b9XXXYueAJumFqUewkHaCv20uflMLpS1uzbwc9o2wrsGgGGqh3J4gXMG0PcNLRB+yt /RP5A0G8QcePG8jKjy19K4fI6FUOxC7NWx9xgXcHF4878GZRkncENW+JeqTlUGSPjGgS jxsWMcm05QGaRvRyH4egxYVi3OMEw4s4bHVIL9A6Yv5E8i1SUgh0e2/zrRMDceHnBKTh hoPEjvOAmjmOVnAJ8Ro3BMHTwRNcJfKedCIREA748Q/jDIzFFGvunDE6yDnGfAbnZf04 xl1/jB8+VBqixjtwEvmdH+VTFUbhXzxtF1DWlhhnMY4sbkdHxH2Pt/eQBkvl6Nm8dGSj gSkg== X-Gm-Message-State: AOAM530gwyXFHLKQjOiaWnQWKcThS/YIsuncadRzuG5wT7O8mbgmStgi pj9YBk4ZeNZvXTSgL7WqqyR9Pg== X-Received: by 2002:a65:690c:: with SMTP id s12mr2110775pgq.401.1628742965215; Wed, 11 Aug 2021 21:36:05 -0700 (PDT) Received: from localhost ([122.172.201.85]) by smtp.gmail.com with ESMTPSA id z15sm1402647pgc.13.2021.08.11.21.36.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 21:36:04 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Vincent Donnefort , lukasz.luba@arm.com, Quentin Perret , Sudeep Holla , Cristian Marussi , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH V3 7/9] cpufreq: scpi: Use .register_em() to register with energy model Date: Thu, 12 Aug 2021 10:05:20 +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/scpi-cpufreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.31.1.272.g89b43f80a514 Acked-by: Sudeep Holla diff --git a/drivers/cpufreq/scpi-cpufreq.c b/drivers/cpufreq/scpi-cpufreq.c index d6a698a1b5d1..bda3e7d42964 100644 --- a/drivers/cpufreq/scpi-cpufreq.c +++ b/drivers/cpufreq/scpi-cpufreq.c @@ -163,8 +163,6 @@ static int scpi_cpufreq_init(struct cpufreq_policy *policy) policy->fast_switch_possible = false; - dev_pm_opp_of_register_em(cpu_dev, policy->cpus); - return 0; out_free_cpufreq_table: @@ -200,6 +198,7 @@ static struct cpufreq_driver scpi_cpufreq_driver = { .init = scpi_cpufreq_init, .exit = scpi_cpufreq_exit, .target_index = scpi_cpufreq_set_target, + .register_em = cpufreq_register_em_with_opp, }; static int scpi_cpufreq_probe(struct platform_device *pdev)