From patchwork Thu Aug 12 04:35:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 495948 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp5639862jap; Wed, 11 Aug 2021 21:36:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTq/QJU5urou2GaNDBIRS6/McqXJrVJsrZdYLEHv1E1XwyE987zwwAs6jWOhQBw718bEsY X-Received: by 2002:a17:906:64a:: with SMTP id t10mr1831239ejb.5.1628742969598; Wed, 11 Aug 2021 21:36:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628742969; cv=none; d=google.com; s=arc-20160816; b=iel8Pr0xmo2okE/I8SX2N7NJo54OBNOLEsRNcXBbzxQIAIyN7suIaJ0tiPUmnOIlql yjmNho8gnj2oTAdSUCP9J8qBjoPh4GcUGU2bQnHDh0OrK1vTm5K+sSSwp2ozaEYQ++Dx XzxqA56arSDQmRHIhaeut8po7RQD4fyCu9lSJQRG+ZitKKvdhuF4A5fwFwodaY1/V1w2 k43UwXMatL43lv990I/ClqKRmu5hEpn6/97DTWz0skDUNsYcVFy34kR9/yQ89czMCyFq T6HFTgMu5jFAH+750UmenI1IxJ+e5YFcuQCE0tQag/G/BO5c5Ka0FHBNdKH+a+xS65wS Oqxw== 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=xQGKod+1toETrZZygbeTDI/UD9O56l1AgluTcAmsQr0=; b=FIM5FdyQi6riEVz6m0V45aZa4TNbNPa2Ic/VCu2h9QQ3lpMZdiWvPmwl57N8715+Kv iqS6vPLtiFBVJ9EpQKwbdFe5TIC45Qtpe8tEndPd7oJqOd/jXvRmfUAQldZ7Q5jboE3e RSgDvPqiviJ46Ju7iUzLKCrKEPTxPazdHpju4bfFqSAQhHbQMlKWiF8pvWEXadS/HNm9 eXUV++gtMSwtPgpd6JFu+5Q+jAmrFsoOkKY9EtwmMCfqhNxed8TFYb8HeqCawYPmAKD7 su5QsIFTVkl1Mx2E/SbsMi2SQfRftjEeB4MgTEhnbUB7/GA0v7GAr22Zhkn5N7JDhTJg jWEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hpGYNDBG; 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 q15si1215298ejs.626.2021.08.11.21.36.09; Wed, 11 Aug 2021 21:36:09 -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=hpGYNDBG; 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 S234047AbhHLEgc (ORCPT + 7 others); Thu, 12 Aug 2021 00:36:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234093AbhHLEgZ (ORCPT ); Thu, 12 Aug 2021 00:36:25 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50E9DC06179F for ; Wed, 11 Aug 2021 21:36:00 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id gz13-20020a17090b0ecdb0290178c0e0ce8bso7848920pjb.1 for ; Wed, 11 Aug 2021 21:36:00 -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=xQGKod+1toETrZZygbeTDI/UD9O56l1AgluTcAmsQr0=; b=hpGYNDBGEyQkLVHPIW1XmsAQfqm6lMtcizJZT9wFryqif4CvN6lQx93IkKP+CIH8RC 3ne6sueHneC5rp8enoVSBifcSV46fJ4r1rdWZFacDGaU2r5q3yG0w1EYLkgwfXhkbpDg a7wE0mqWmfyfHb7mozVb34JlMjsJq0P0s/XK6pcoh3YxlMODM8llnCSTngTAthw6U0Ab j0+ktxEXSk5SSG29DI1dvgDO9qhDBmMhNWgJI9ScSMFXWzd/w0n/oWZqiptOp710AGFO aSnYZDsdnO2aeQ6vNAf11Au7QNAkQcINdZsGQXZwPGb9K5H7Hi8jvqB+M6J6bj3cxvSk xvZQ== 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=xQGKod+1toETrZZygbeTDI/UD9O56l1AgluTcAmsQr0=; b=mLjFlIiVYJg77LD2GBVodKcdYxzPhmyrLyr6l/7LZm7sB8c6DVdGQ27cyAxZcGWW/Q H7Zk8nr76tbGQEAC9fBDvcaaWTm8o9YgzDKbD0vdrGOoPN07P9Grpud2+EPCTVGoypkj 5rXjuquGmi1FM0Z4zQQ0mFfyhAOv31JbJeuLbkHOL1NGUpQJfK1sMMfx/IeLO92NQ7Cr fqVsVmRi3FiEQCpnbF3nNr68mA9Pa33DHLsDOVO5nWHUQguifhLU+nlSW7rRBk1UX4dA 90JOHN5eUL1R0W7pKqoIN7fpq0Ts+3CuujqU3FDSDPmjx2c48DUbxDOKJJVuN+ZBo89N hcjg== X-Gm-Message-State: AOAM532a+eMVUY+vmqqKh/jrkctg2fS48c63+nGyPNgy4AtnLizM5yfg uSOP/fZWaHYVS0QDSyqDh8TL5g== X-Received: by 2002:a63:ef02:: with SMTP id u2mr2198232pgh.298.1628742959909; Wed, 11 Aug 2021 21:35:59 -0700 (PDT) Received: from localhost ([122.172.201.85]) by smtp.gmail.com with ESMTPSA id t18sm535357pfg.111.2021.08.11.21.35.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 21:35:59 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Vincent Donnefort , lukasz.luba@arm.com, Quentin Perret , Kevin Hilman , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V3 5/9] cpufreq: omap: Use .register_em() to register with energy model Date: Thu, 12 Aug 2021 10:05:18 +0530 Message-Id: <361a172d230964807c0b479738749c50d95d7b50.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/omap-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.31.1.272.g89b43f80a514 diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c index e035ee216b0f..1b50df06c6bc 100644 --- a/drivers/cpufreq/omap-cpufreq.c +++ b/drivers/cpufreq/omap-cpufreq.c @@ -131,7 +131,6 @@ static int omap_cpu_init(struct cpufreq_policy *policy) /* FIXME: what's the actual transition time? */ cpufreq_generic_init(policy, freq_table, 300 * 1000); - dev_pm_opp_of_register_em(mpu_dev, policy->cpus); return 0; } @@ -150,6 +149,7 @@ static struct cpufreq_driver omap_driver = { .get = cpufreq_generic_get, .init = omap_cpu_init, .exit = omap_cpu_exit, + .register_em = cpufreq_register_em_with_opp, .name = "omap", .attr = cpufreq_generic_attr, };