Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1335773 > unrolled thread
| Started by | "Rafael J. Wysocki" <rjw@rjwysocki.net> |
|---|---|
| First post | 2016-02-16 21:10 +0100 |
| Last post | 2016-02-17 06:20 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 1/2] cpufreq: ondemand: Simplify od_update() slightly "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-02-16 21:10 +0100
Re: [PATCH 1/2] cpufreq: ondemand: Simplify od_update() slightly Viresh Kumar <viresh.kumar@linaro.org> - 2016-02-17 06:20 +0100
| From | "Rafael J. Wysocki" <rjw@rjwysocki.net> |
|---|---|
| Date | 2016-02-16 21:10 +0100 |
| Subject | [PATCH 1/2] cpufreq: ondemand: Simplify od_update() slightly |
| Message-ID | <r2U6D-4e2-23@gated-at.bofh.it> |
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Drop some lines of code from od_update() by arranging the statements
in there in a more logical way.
No functional changes.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
drivers/cpufreq/cpufreq_ondemand.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
Index: linux-pm/drivers/cpufreq/cpufreq_ondemand.c
===================================================================
--- linux-pm.orig/drivers/cpufreq/cpufreq_ondemand.c
+++ linux-pm/drivers/cpufreq/cpufreq_ondemand.c
@@ -175,14 +175,11 @@ static void od_update(struct cpufreq_pol
/* No longer fully busy, reset rate_mult */
policy_dbs->rate_mult = 1;
- if (!od_tuners->powersave_bias) {
- __cpufreq_driver_target(policy, freq_next,
- CPUFREQ_RELATION_C);
- return;
- }
+ if (od_tuners->powersave_bias)
+ freq_next = od_ops.powersave_bias_target(policy,
+ freq_next,
+ CPUFREQ_RELATION_L);
- freq_next = od_ops.powersave_bias_target(policy, freq_next,
- CPUFREQ_RELATION_L);
__cpufreq_driver_target(policy, freq_next, CPUFREQ_RELATION_C);
}
}
[toc] | [next] | [standalone]
| From | Viresh Kumar <viresh.kumar@linaro.org> |
|---|---|
| Date | 2016-02-17 06:20 +0100 |
| Message-ID | <r32GR-1JA-7@gated-at.bofh.it> |
| In reply to | #1335773 |
On 16-02-16, 21:00, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> Drop some lines of code from od_update() by arranging the statements
> in there in a more logical way.
>
> No functional changes.
>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> ---
> drivers/cpufreq/cpufreq_ondemand.c | 11 ++++-------
> 1 file changed, 4 insertions(+), 7 deletions(-)
>
> Index: linux-pm/drivers/cpufreq/cpufreq_ondemand.c
> ===================================================================
> --- linux-pm.orig/drivers/cpufreq/cpufreq_ondemand.c
> +++ linux-pm/drivers/cpufreq/cpufreq_ondemand.c
> @@ -175,14 +175,11 @@ static void od_update(struct cpufreq_pol
> /* No longer fully busy, reset rate_mult */
> policy_dbs->rate_mult = 1;
>
> - if (!od_tuners->powersave_bias) {
> - __cpufreq_driver_target(policy, freq_next,
> - CPUFREQ_RELATION_C);
> - return;
> - }
> + if (od_tuners->powersave_bias)
> + freq_next = od_ops.powersave_bias_target(policy,
> + freq_next,
> + CPUFREQ_RELATION_L);
>
> - freq_next = od_ops.powersave_bias_target(policy, freq_next,
> - CPUFREQ_RELATION_L);
> __cpufreq_driver_target(policy, freq_next, CPUFREQ_RELATION_C);
> }
> }
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
--
viresh
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web