Message ID | b55e4579ef70d47ceeec8e4b96108e8f3e0f1b81.1611227342.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp471881jam; Thu, 21 Jan 2021 03:22:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5R2W1NyYmXX4/1cyI5NaxxHNEfpBVir0uqgiLFPLu4PYfUOrtLl+axKNtdxVxXBVLUi/t X-Received: by 2002:a17:906:7a42:: with SMTP id i2mr3979455ejo.27.1611228127131; Thu, 21 Jan 2021 03:22:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611228127; cv=none; d=google.com; s=arc-20160816; b=SdWdgTrcD4LcKHV84wBcpETubhNmmiNEhr1wJV1oLvbyTKZ7t9sXYF5LunZYwHjVpB 1rqdgpI1xHHBnfmnIT/ZXsuM3ba9Lql4TZCQeMHPUwuNftDX6kdeG46QwxrHzGP82Hxr 4sTtrKAGaCm4Rd2QLOB+Sj9hiDioF6v0SE5ROcb3h+vJHbjS6nVdX8kBgkP1aYVpVvGq pMyadJLzZCk6OBkFcDRhZLG27SSfZUak6RUpb+k2DLPnwGAp/OZ03YGQcu72SN+41jzm VvnP8O6BjGLq2VJp2LvEgaMBC8dq42IJuimQzmS2qERJKgDC48L3P8yRq7tVdhV6MLsB 6V+w== 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=DAtjI7/BPs0IoV2iaS54lmWpFTE0HbF0Es/G22rWt3g=; b=NbkOBjqfaFEgwJcBtkxCRqZGA/8g7mNP9884uCzFcz57B3vW1NxWW+86nGsmwJFv8F ND/V45BmP9jrWEWdZ0XDCPyBw+xMqQUVv3GlPX1iMeEVHup2KfjzZ6fOe9qH2MS9DHxg AJpuXA2QCAzv7mJEZW1JLMWUZqCsJNVEuO+tNIIZcbS1OzM+IHFt79ttJOK6yyjb1QKh pziC+3g2gDZF/bXKdx33BCF1nr0xWGIILeK66Wn/QozSL/s1zcELB53QE89Vbj2CTMgN f2TmoTFmmsIrCgvUg80srUBXkEwRDp23D6NuOjk/ShsKe51wdVJJ/LksOb/jQw3YK/GB tczQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZpmS5LN1; 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 h6si1753700ejq.244.2021.01.21.03.22.06; Thu, 21 Jan 2021 03:22:07 -0800 (PST) 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=ZpmS5LN1; 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 S1729177AbhAULUn (ORCPT <rfc822;jun.nie@linaro.org> + 7 others); Thu, 21 Jan 2021 06:20:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726959AbhAULUk (ORCPT <rfc822;linux-pm@vger.kernel.org>); Thu, 21 Jan 2021 06:20:40 -0500 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72923C0613D6 for <linux-pm@vger.kernel.org>; Thu, 21 Jan 2021 03:18:45 -0800 (PST) Received: by mail-pg1-x535.google.com with SMTP id p18so1137020pgm.11 for <linux-pm@vger.kernel.org>; Thu, 21 Jan 2021 03:18:45 -0800 (PST) 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=DAtjI7/BPs0IoV2iaS54lmWpFTE0HbF0Es/G22rWt3g=; b=ZpmS5LN1rts74B7Ode0O1RTIMsoc8Gi0J/g/qdh4T4B+Pl5+6gDcpGtwEy3pxwaa1n KJMIk8ywsFR4wtEZeD3cynSaQbttOpg++x8NwKSnz5NE2yMDL+xniSZ2kjT0faYRi5pL M+Ww1NxEYcW6YGEkuuNHvtUhb0dRL8IgsIE9SQlSprdhSHMaSGscj1dOZ0pc7bkhMeRY 40VDRsunRhdrZp8VxhHfj0mrnlOz/vOMk0C1DUU9eLTtmhKiclL+GWz1UIm6g+zTmw1Y u2QUTm7Kird1vwS6WBpw7kK7Uo1YQ75ztHo2FgLS8AEfwPTzQ4+ugUeRvnqx9lyoBgi/ jm/Q== 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=DAtjI7/BPs0IoV2iaS54lmWpFTE0HbF0Es/G22rWt3g=; b=ijPQyDlKQjPRtAGZnzgIeTPIuozm6GO4mI2J9X92BkLIDdDdLlzCOaQ6BQWi7cWXzC XNM3ZTqQGBZClAXRtbHLn1e+RLpIp9I9jAdCuBhZxcMUTrJoNJVevwHrRKtc63jDFblX AZ3+5O2Ae+lVVgzePcdtngyTsbw7EkSyLalYupFUioKU0VC1voNQOGwVpGF9V/3WQC4/ DekORWZbNus3CI4Ltw81qQnDzBctCQ3GPaUE0zWOSku5QgGv58iF1OUvsw1h/XQzBdzp rLcQko8dXEAP8G6bQsi/J96VbZJtY/v/439ek1n+0GMtpmWniEY9RV6g6CDeXQPtihCx 0Grw== X-Gm-Message-State: AOAM531zfKpP3XsKZDc9Wl5WHKSftf8HQEX507m5bfbNRHycRqkPEJ60 ECxgRBIy9J65IAoHShmcBu4Arg== X-Received: by 2002:a05:6a00:a8d:b029:1ba:71d1:fe3c with SMTP id b13-20020a056a000a8db02901ba71d1fe3cmr9122927pfl.51.1611227909301; Thu, 21 Jan 2021 03:18:29 -0800 (PST) Received: from localhost ([122.172.59.240]) by smtp.gmail.com with ESMTPSA id u1sm5595280pjr.51.2021.01.21.03.18.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jan 2021 03:18:28 -0800 (PST) From: Viresh Kumar <viresh.kumar@linaro.org> To: Dmitry Osipenko <digetx@gmail.com>, Viresh Kumar <vireshk@kernel.org>, Nishanth Menon <nm@ti.com>, Stephen Boyd <sboyd@kernel.org> Cc: Viresh Kumar <viresh.kumar@linaro.org>, linux-pm@vger.kernel.org, Vincent Guittot <vincent.guittot@linaro.org>, Rafael Wysocki <rjw@rjwysocki.net>, Sibi Sankar <sibis@codeaurora.org>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 01/13] opp: Rename _opp_set_rate_zero() Date: Thu, 21 Jan 2021 16:47:41 +0530 Message-Id: <b55e4579ef70d47ceeec8e4b96108e8f3e0f1b81.1611227342.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af In-Reply-To: <cover.1611227342.git.viresh.kumar@linaro.org> References: <cover.1611227342.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 |
opp: Implement dev_pm_opp_set_opp()
|
expand
|
diff --git a/drivers/opp/core.c b/drivers/opp/core.c index aea0b9d7203c..9ec8e42981d0 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -943,7 +943,7 @@ int dev_pm_opp_set_bw(struct device *dev, struct dev_pm_opp *opp) } EXPORT_SYMBOL_GPL(dev_pm_opp_set_bw); -static int _opp_set_rate_zero(struct device *dev, struct opp_table *opp_table) +static int _disable_opp_table(struct device *dev, struct opp_table *opp_table) { int ret; @@ -997,7 +997,7 @@ int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq) } if (unlikely(!target_freq)) { - ret = _opp_set_rate_zero(dev, opp_table); + ret = _disable_opp_table(dev, opp_table); goto put_opp_table; }
This routine has nothing to do with frequency, it just disables all the resources previously enabled. Rename it to match its purpose. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/opp/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.0.rc1.19.g042ed3e048af