Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1686255
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Viresh Kumar <viresh.kumar@linaro.org> |
| Newsgroups | linux.kernel |
| Subject | [RFC V2 6/6] cpufreq: arm_big_little: Make ->get_transition_latency() mandatory |
| Date | Thu, 13 Jul 2017 07:50:01 +0200 |
| Message-ID | <u2FaF-1xh-1@gated-at.bofh.it> (permalink) |
| References | <u2FaF-1xh-3@gated-at.bofh.it> |
| X-Original-To | Rafael Wysocki <rjw@rjwysocki.net>, Viresh Kumar <viresh.kumar@linaro.org>, Sudeep Holla <sudeep.holla@arm.com> |
| 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 :in-reply-to:references; bh=k1rtmZWEmosz7Z2ks/yjwjhUuUT4g3R0I4NYWGFg4vs=; b=ReUYyUkevFqvGlkG03E24KWsDuI3wpbZkDzBiuM5YS9GLvdpHoVfXGqi9fuZOSwY/c EesvjjZI/jRKp5GO+nt19UIClJ4cFA5Vpe7y1InBRYHrPWeHt1badX0g7ZvuXKkEJ9jo f2+CSMty+AQKYo0RcnMusnUeAkr/eFR/BcXy0= |
| 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:in-reply-to:references; bh=k1rtmZWEmosz7Z2ks/yjwjhUuUT4g3R0I4NYWGFg4vs=; b=ACm538sp1396NGtO0rycxNN8YJbvwAxkH3rRIZPzNIHah31fHe+vT4Nm+G1rappGMC i4icChMYtnHJQtE9nv59vrAA0KVGTWJ5UUPKnIh1aOoroDMbByB5tQYqx6g1QcfPBq0J HLaSg8t53DxMdByzHXfJP3x8IBHfwEWKobPZLUMhv+8d5V/lZiYxYX9LRH/0ZVEZqcSn H3kPl0aEKO3l6JSLqDtHdg7dgwyh1VorEo3f3ukxjCxOdA0KBamYzgFCQxQs/InIyakq Cvos9UiLL+guFVFKMM1eWc95tx/bV/ZY3luMKdqhs15HFZcb7RrP4RAUtJt00OCyGqQj S7RA== |
| X-Gm-Message-State | AIVw112i/nPvOr12mPdF2ViEtuQwQRwV729S4Uhhzun7Tgamx6FqTO4d LTdUuTnBCFZGPUSP |
| X-Received | by 10.84.229.13 with SMTP id b13mr8193561plk.1.1499924507540; Wed, 12 Jul 2017 22:41:47 -0700 (PDT) |
| X-Mailer | git-send-email 2.13.0.71.gd7076ec9c9cb |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 40 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-pm@vger.kernel.org, Vincent Guittot <vincent.guittot@linaro.org>, linux@dominikbrodowski.net, linux-kernel@vger.kernel.org |
| X-Original-Date | Thu, 13 Jul 2017 11:10:57 +0530 |
| X-Original-Message-ID | <b2343dced853ef2e9ac56337dff0f9a4d2014d9a.1499853492.git.viresh.kumar@linaro.org> |
| X-Original-References | <cover.1499853492.git.viresh.kumar@linaro.org> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1686255 |
Show key headers only | View raw
All users of arm_big_little driver are defining it and there is no need
to keep it optional.
Make it mandatory to remove the always true conditional statement.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
drivers/cpufreq/arm_big_little.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/drivers/cpufreq/arm_big_little.c b/drivers/cpufreq/arm_big_little.c
index 418042201e6d..d1eb2a53b61f 100644
--- a/drivers/cpufreq/arm_big_little.c
+++ b/drivers/cpufreq/arm_big_little.c
@@ -483,11 +483,8 @@ static int bL_cpufreq_init(struct cpufreq_policy *policy)
return ret;
}
- if (arm_bL_ops->get_transition_latency)
- policy->cpuinfo.transition_latency =
- arm_bL_ops->get_transition_latency(cpu_dev);
- else
- policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;
+ policy->cpuinfo.transition_latency =
+ arm_bL_ops->get_transition_latency(cpu_dev);
if (is_bL_switching_enabled())
per_cpu(cpu_last_req_freq, policy->cpu) = clk_get_cpu_rate(policy->cpu);
@@ -622,7 +619,8 @@ int bL_cpufreq_register(struct cpufreq_arm_bL_ops *ops)
return -EBUSY;
}
- if (!ops || !strlen(ops->name) || !ops->init_opp_table) {
+ if (!ops || !strlen(ops->name) || !ops->init_opp_table ||
+ !ops->get_transition_latency) {
pr_err("%s: Invalid arm_bL_ops, exiting\n", __func__);
return -ENODEV;
}
--
2.13.0.71.gd7076ec9c9cb
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[RFC V2 6/6] cpufreq: arm_big_little: Make ->get_transition_latency() mandatory Viresh Kumar <viresh.kumar@linaro.org> - 2017-07-13 07:50 +0200
csiph-web