Message ID | 29c65db2dfcbfebdb291a3056cc2adaca8b34cec.1628682874.git.viresh.kumar@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp4900372jap; Wed, 11 Aug 2021 05:06:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1rTKTt3pJvmzFAXJJ1aQldKTwZ9hCowl1x94DTX6rTwn+Q268YX7kX/Hj5le/B27cooca X-Received: by 2002:a50:8fe1:: with SMTP id y88mr10918054edy.101.1628683607911; Wed, 11 Aug 2021 05:06:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628683607; cv=none; d=google.com; s=arc-20160816; b=0b9FtvzoC/OpDoDlWiUDBg28itzVyaxw5ndGTu4lrnkA0UbkFkTUeUVUoa345i2j/9 vca1mx/fjl4Tzzzkdg9ZDpyCkZ+OqsQ09LNEg+VpKobcsKDu4qavA8usiACKgdZyHT09 0RCFuT6rtjmpQDB1nGLKrWvN1zOAOcnumqrLZ7gVIB8eBUNBDlCgkH6tlKa8QgSN5Cvy dgnwxE4xAdaCQ3IEHSqNTB4z3Y7ZCWeNY4sPEV3a4rZRyQFrGKKA6aNnChqh1V/8nWVJ IdwFXsgrRKW29AKLnQFirKtYrNW+LIivOpIrBQXcqi9Adxm0FqHTBQ7EuA0xpSffuZOg bOHQ== 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=4ZC+FP75mFAQwlcrfkbIZ+KkPc6ZyFBFhH1NecTG31o=; b=ZLaB77DqjTTsULhD1XNaT7nUBDB34Otpzk26d7oIGcbzvULGBUYUrrRnL/1lPgBPU/ bf7T40fqrFUzBF+n21kIQ5lXBevVFm4innEBrgIdQdiim3Coj2Zn3Jb8X6MBARHyYqvq hFi8OQkA32JYjFz3VSE5Ai5YBcCE/2+6IqxY32yj6ZJ2dk55hge3QfFle3TXXdvSTe/n epgVTbmg6uWjXpEVIRXaHqG3D4ArOoNIHaL7W5udg5BG2b+nahQK2HcYxCesQUCJ9T/o OiP6XpYN5XCNr3ezz3dwEV7z/Oda+hXRFp+voGY6uWwIXzfgxN+pgi4enDsFPhGPXv46 kgrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LkS+DJyC; 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: <linux-pm-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q25si23486069ejn.362.2021.08.11.05.06.47; Wed, 11 Aug 2021 05:06:47 -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=LkS+DJyC; 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 S237665AbhHKMHI (ORCPT <rfc822;naresh.kamboju@linaro.org> + 7 others); Wed, 11 Aug 2021 08:07:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237567AbhHKMHB (ORCPT <rfc822;linux-pm@vger.kernel.org>); Wed, 11 Aug 2021 08:07:01 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF451C0613D5 for <linux-pm@vger.kernel.org>; Wed, 11 Aug 2021 05:06:37 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id gz13-20020a17090b0ecdb0290178c0e0ce8bso5745457pjb.1 for <linux-pm@vger.kernel.org>; Wed, 11 Aug 2021 05:06:37 -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=4ZC+FP75mFAQwlcrfkbIZ+KkPc6ZyFBFhH1NecTG31o=; b=LkS+DJyCHnMxf56bNqFv4JSdLFaYjYrHiVV7mc3191cjFeYU3wHMqGpRM4gdjWsoAp MQJ4C/itAshvVXwGwO0e3Z2SG1ympyGA4sHg5fcQuGy769EMvr48vlOXEDlps+AMmvob 2bTZAOPXVOSz7g8rruXoulxOthp3RA6tJlmz9SJLfipbJTG226hE+c+VVrzYKhZypikQ I5OU4VJ3PEwx0lqwyHjDNO9EoYf8i6Krx/tylt0uhBBd4eCiVZha55T4ptkfiWUxRe6E nQOTmEUtmsGA+4cjv2I6J7D3TKxjHdMSkKn3iu0fUmY+nlCfnYG0zRgwcFR3496FyTfu b0NQ== 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=4ZC+FP75mFAQwlcrfkbIZ+KkPc6ZyFBFhH1NecTG31o=; b=lGYmqGYDDAHtziGcsHbFgc3/Ab6uzqXBjICNQe67+sAmJ1VUnfCKYhHhXOT9TqkdXW f6RqRzd5WAEXRYsSAyF/p3+0OyFpbYETCLmg9p+9YLfn2qM7KLqEYqCreQMCOb0LRoMk eVkGcSAyB8TrDO2GL3HIqlukNEbUMAygk6SfAo2DAvwi4Vxf8TAhlg8rtwXPSwHJmYD5 B5Io4CCAY0trkveWiLkFaQrDrEu9oS9HINXtP/dHdNp6kBKGTkU20yZtlT91iuU/3wek Nf9wtQ8MENfdZ2OjfWJMuB2gKOXH6/ndrWuZUL5Cjws6xPBADJpM2uf1Nu4Czcpilck2 /q7w== X-Gm-Message-State: AOAM530vKZ3bm5LdancRYM1f1cNuvyywEtcfu2CN4V8/so4fF/LVFfyB DhFGFD8v1it1hofSRxgrmuovNg== X-Received: by 2002:aa7:8889:0:b029:3bc:e8a5:50ea with SMTP id z9-20020aa788890000b02903bce8a550eamr28572168pfe.73.1628683597329; Wed, 11 Aug 2021 05:06:37 -0700 (PDT) Received: from localhost ([122.172.201.85]) by smtp.gmail.com with ESMTPSA id 23sm14538606pgk.89.2021.08.11.05.06.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 05:06:36 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> To: Rafael Wysocki <rjw@rjwysocki.net>, Sudeep Holla <sudeep.holla@arm.com>, Cristian Marussi <cristian.marussi@arm.com>, Viresh Kumar <viresh.kumar@linaro.org> Cc: linux-pm@vger.kernel.org, Vincent Guittot <vincent.guittot@linaro.org>, Lukasz Luba <lukasz.luba@arm.com>, Quentin Perret <qperret@google.com>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 7/9] cpufreq: scpi: Use auto-registration for energy model Date: Wed, 11 Aug 2021 17:28:45 +0530 Message-Id: <29c65db2dfcbfebdb291a3056cc2adaca8b34cec.1628682874.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: <cover.1628682874.git.viresh.kumar@linaro.org> References: <cover.1628682874.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-pm.vger.kernel.org> X-Mailing-List: linux-pm@vger.kernel.org |
Series |
cpufreq: Auto-register with energy model
|
expand
|
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)
Set the newly added .register_em() callback with cpufreq_register_em_with_opp() to automatically register with the EM core. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/cpufreq/scpi-cpufreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.31.1.272.g89b43f80a514