From patchwork Thu Aug 12 04:35:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 495945 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp5639748jap; Wed, 11 Aug 2021 21:35:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye00XRw9+Icq5JY/GpNrz7PAY0711AA/N2T8OPXCsWBO3xanG3nuEgnSrGJSEM5WoioNBE X-Received: by 2002:a05:6402:1215:: with SMTP id c21mr3120294edw.137.1628742958745; Wed, 11 Aug 2021 21:35:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628742958; cv=none; d=google.com; s=arc-20160816; b=MCNQvTGig+V8ZAZ653prIWQX7oGTI+zSNPxch7hA/ekRH79xM5MwZjaDn8esoaC2B5 jpA4FjXAskmPj6zW+vNhtCV2/Vf/mZyfHy9WV+HJrS+8V3T/jbPRYQCbDkFvuYmk2FCc 67I1g6FMi0fInDRPaufxCJWVkJP9gmfTwNS4KB8Phmrnn5vUq5wFzKYNLTzsAhEeCfy9 TaQibTiqHIGnpioEloc+X69ENE+/Tkm4BoQjnzvdyp7lS+fRLlokjoIHDpqem2iOA+s0 1X2V7O6OqY3CzeDXf2DiPMKafXGsBkKyftsobxLg+z4rM9PEU2ZndptGExnI5OZM+qXU Js0Q== 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=k48YyjS9KRlRanFe/kfIE1R2AlXiENKsFw9f6TRi87E=; b=sDl+P0lLrGPd3GQDyUDHfVoi0FE3sB1ey8V6omHL/XaeHWsZ5YIeCQ2cSFl1wR7Pc5 kwIrQfsqcxGmuEfe7hMK5plqbe/xpMb/E3CFqwCTbdjH43Ivjcjz182iVaNwP+9nyrE9 Szas/MI9AewWPDjAuu6p2M05l4yucptQtLXRZW46e5WXm0pPJ88lvTnYavgRf7YoW44M SQ1gwhkZ5YxSfP3Vv9hDz5RhWrQvjSA2EldMKbgzflBeGSxoTcH7gD5LTwH/4nViF2EV xYxZU0Zrob+7SDYZyZVc939hM8TO39hT/lAAWaRYQexUcVZakhVWPS/WT89sjB9/t5KX fXTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tN9B5k4m; 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 s5si1550640edr.161.2021.08.11.21.35.58; Wed, 11 Aug 2021 21:35:58 -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=tN9B5k4m; 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 S234053AbhHLEgR (ORCPT + 7 others); Thu, 12 Aug 2021 00:36:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234036AbhHLEgQ (ORCPT ); Thu, 12 Aug 2021 00:36:16 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ED67C061765 for ; Wed, 11 Aug 2021 21:35:52 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id a20so5674410plm.0 for ; Wed, 11 Aug 2021 21:35:52 -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=k48YyjS9KRlRanFe/kfIE1R2AlXiENKsFw9f6TRi87E=; b=tN9B5k4mmcraApnfbxQl5mSz8yiBDtzXSKYvcsLtFW80z4amA5SAE+BAn3vLkujR9+ h6zMKm2sm9uZ6vPq+28lMbKGnA15WOdpBsJISdSfQlFz6KUqnD23F0EPiMzWr+SwfVX7 b6R86wjg0a1B/sa8LZk3dGMu+dfC4uOdqvmtp0iD5blno6FxTLbA1RTQ3ZTapWpRJs5c 7XFOCVVzhW+JA4lIHiag8SSj/2/blzgEFinlVw3ZZC2s4Y+QPTBY0qwBZaVuMZBAyUkE w0lqq9lop8oIL9zpQPXf3f+kNAttFKGQlCnSY43LI3lAlHGftrOxizAemBajMbeED1c2 DhBA== 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=k48YyjS9KRlRanFe/kfIE1R2AlXiENKsFw9f6TRi87E=; b=dNCPTGb2/w6rRL68owD8BSmxUPgEyJBEyD0Lwe/0B5QskvSKYyOPMCxSQRXFIVXmMy nhG0eeO3/bxqzd3pG5UDkFZ42ya1hEuwYrh5UX4HEfvTdNwyrgaC3kku0svssddpkNaR Pda5huduOtq0vnr8amtraA3xgbrcS0dvLRSTBHnKyNeLuaP7MwB+XoWE18fdhN9b+tpT umWhZ0rZZEVUCGjjQW876pLy93pMHwvTyksFsOSoPSvmQ58L9or8GtXvGHBi6o5ZWrWj 2zU/R7Ta0rmt6hHfSVNxNDQNTpAwkzqdhEc7t1drpCUi5iXzvMhJwgG5ViCDhiPtWcfZ Bsqg== X-Gm-Message-State: AOAM530rEWBelanbp0TRdQlRE8Umo5lbtw1DHy4t1zJ03OFQiUkTwPVK 3Mi+WYA2zGGTwrvgrc0Ermj05A== X-Received: by 2002:a17:90a:4987:: with SMTP id d7mr4856388pjh.46.1628742951640; Wed, 11 Aug 2021 21:35:51 -0700 (PDT) Received: from localhost ([122.172.201.85]) by smtp.gmail.com with ESMTPSA id 128sm1330009pfe.55.2021.08.11.21.35.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 21:35:51 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Vincent Donnefort , lukasz.luba@arm.com, Quentin Perret , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org Subject: [PATCH V3 2/9] cpufreq: dt: Use .register_em() to register with energy model Date: Thu, 12 Aug 2021 10:05:15 +0530 Message-Id: <94ab4c3c259c7d00746e5cafb55b5f5125f34b71.1628742634.git.viresh.kumar@linaro.org> 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/cpufreq-dt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.31.1.272.g89b43f80a514 diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c index ece52863ba62..8fcaba541539 100644 --- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c @@ -143,8 +143,6 @@ static int cpufreq_init(struct cpufreq_policy *policy) cpufreq_dt_attr[1] = &cpufreq_freq_attr_scaling_boost_freqs; } - dev_pm_opp_of_register_em(cpu_dev, policy->cpus); - return 0; out_clk_put: @@ -184,6 +182,7 @@ static struct cpufreq_driver dt_cpufreq_driver = { .exit = cpufreq_exit, .online = cpufreq_online, .offline = cpufreq_offline, + .register_em = cpufreq_register_em_with_opp, .name = "cpufreq-dt", .attr = cpufreq_dt_attr, .suspend = cpufreq_generic_suspend,