From patchwork Wed Aug 11 11:58:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 495166 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp4900282jap; Wed, 11 Aug 2021 05:06:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSvVMFO01cJzK8bLaojiLUbLT7MckaJlncCd2xqMVQ+/AXXcwRfpr8Hv0nF9PSaaFcaWDf X-Received: by 2002:a17:907:2ce7:: with SMTP id hz7mr3290940ejc.35.1628683601987; Wed, 11 Aug 2021 05:06:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628683601; cv=none; d=google.com; s=arc-20160816; b=RIGXu9vYVqWmprTxlPvW9vp388Fzdgj6pMgAsmtoffLdBZSrlLp92YSfljWvUa2ITQ kdBKTTG3k2ujqyYZGO9VbNn7PVRnCoQhB6GI4UOy1c0k67zZrV+wfU/wkBYSfDqz8C5M UV8YV/J0YoBW4+3BtQ1JxArfhGr/s3+YGjUC5q7MzFYeC7JaaKIZVbpNzp0RkslWQdxz yerqF46B9MCbDls4XOBjm1nUTSHDXSnuBi1bKfVFTUI3VkPekci1OqoHJ4bTMK45wHjy YdEf8r4zkDYgYof9oAgP9Rm/UkX30o/UM1KQX9kQnVqZnIW1BFWsod/mtnCWbK9Lm+rY x38w== 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=BXHghljtL4EI/XqtTqMJz5EFL6+UxuiO/TdGXUvnvkE=; b=wh9wPlOWrtt8yadoM5I9I/88Svaf3oSFIgfEaEdqu8LuQJ/a4DLJdyxl1VBojiLwMa d0hFk9FY0XezbloqWazLPIYLQ4t+S0U3liyQSHkd774RkoXYKdu1Akx8H448yGebE8+V zVwxHpXifkoYvrGu+XI2h3MBFMnwpQVCcqMNmlNXcgEPqd4/bt0VfCJYc698O86ela5M +V6KG8jW8n06bQ2FGulelbrV1aD2NRntsm+pC5ttY1EKLGjSg+sYN0De0Tg5XliYqmUR WAvAcww70kuUmVkqfFQ9vdlyKSnCtE6DZc3huZaO9Bzkq3q6jWFn/dPqVyy7FqMjeunN HTQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pGvvmyLg; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-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 q25si23486069ejn.362.2021.08.11.05.06.41; Wed, 11 Aug 2021 05:06:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-omap-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=pGvvmyLg; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-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 S237608AbhHKMHD (ORCPT + 3 others); Wed, 11 Aug 2021 08:07:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237583AbhHKMG6 (ORCPT ); Wed, 11 Aug 2021 08:06:58 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36219C06179E for ; Wed, 11 Aug 2021 05:06:31 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id q2so2379768plr.11 for ; Wed, 11 Aug 2021 05:06:31 -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=BXHghljtL4EI/XqtTqMJz5EFL6+UxuiO/TdGXUvnvkE=; b=pGvvmyLgKXMq/gHVrO+ZoqLit5xJiuyTTDJ8SaKmoTWv2du9Ih0MpPYTsTRPbJlCOV hghx6irrx50AxT5V8KZGbN9uwrEEfCdHXcGxqT1tPcLtEvwg1uP3fpvWgcPdMLullHVH PtE6/eF0rKi+S+kC+vh6dzIr3l1cozoJal4JPPrkJGKni8qrYPFLdCxpQUSLd4lGiYmX 1bAIHU3WKZFsNP2BQwCSJYT7kv1RZLcP6QK4/UHlHAQhmZcvVZkCd0ZfOQXY2n+eJ5xG epdcTT1+J31BHoWqBzAblw3GyVFWPT05aqg8VSHsYB81pxYeuwVgIo2zt45f3PpuVAdJ pbYw== 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=BXHghljtL4EI/XqtTqMJz5EFL6+UxuiO/TdGXUvnvkE=; b=CxFL5/KchFW3mHxR0JqvhqmEp78NdRUXJWfTo5jRJW97vjZhTHDisjnE2vm3dCI/QJ 0WKunzGzCDnYRkIGSZ/xvUh5ZxeggVn7dp+lB06h2baapWn1TTSeA0Y45GOFTA0hOrdE CDdCkTDGqSbyXuzjpIbrUFOVdgDDrcjRHoXuZxDXkH4J8t6Ou96ALN4rLzeZeb1hN1sp FiCDcfDG3nGnRW6V8j4fzb+Im67JcjiRd/OIHPszYqq0QmSROtrV1bUWZS4cJjzy/9Wd 3YOZXnH4hSI2AwRMNjiaBQiJa3djE76AnD3hyi55B2s8uWQw/R6t3DVPC62K1+9rS/r4 kh7Q== X-Gm-Message-State: AOAM530YLmi+zoS2rkbWi5iNUOVCWuYclFbi+Bw5b0N7GGScU4dpD3CV aeVyxhQyEMolZneJOsLM4AcIPQ== X-Received: by 2002:a63:4b20:: with SMTP id y32mr384518pga.382.1628683590823; Wed, 11 Aug 2021 05:06:30 -0700 (PDT) Received: from localhost ([122.172.201.85]) by smtp.gmail.com with ESMTPSA id b20sm26614754pfl.9.2021.08.11.05.06.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 05:06:30 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Kevin Hilman , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , Lukasz Luba , Quentin Perret , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 5/9] cpufreq: omap: Use auto-registration for energy model Date: Wed, 11 Aug 2021 17:28:43 +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-omap@vger.kernel.org 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 --- 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, };