cpufreq: ondemand: Simplify od_update() slightly
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 16 Feb 2016 20:02:24 +0000 (21:02 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Mar 2016 13:41:05 +0000 (14:41 +0100)
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>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq_ondemand.c

index a3ee74577404f2360bc643c948d2225d23f550a8..34e3a1be9971cca18203597cab02da188762c0f2 100644 (file)
@@ -175,14 +175,11 @@ static void od_update(struct cpufreq_policy *policy)
                /* 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;
-               }
-
-               freq_next = od_ops.powersave_bias_target(policy, freq_next,
-                                       CPUFREQ_RELATION_L);
+               if (od_tuners->powersave_bias)
+                       freq_next = od_ops.powersave_bias_target(policy,
+                                                                freq_next,
+                                                                CPUFREQ_RELATION_L);
+
                __cpufreq_driver_target(policy, freq_next, CPUFREQ_RELATION_C);
        }
 }