lkml.org 
[lkml]   [2016]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] cpufreq: governor: Simplify cpufreq_governor_limits()
On 07-02-16, 16:23, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> Use the observation that cpufreq_governor_limits() doesn't have to
> get to the policy object it wants to manipulate by walking the
> reference chain cdbs->policy_dbs->policy, as the final pointer is
> actually equal to its argument, and make it access the policy
> object directy via its argument.
>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> ---
> drivers/cpufreq/cpufreq_governor.c | 17 ++++++++---------
> 1 file changed, 8 insertions(+), 9 deletions(-)

Why the hell did we write it that way earlier ? :)

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

--
viresh

\
 
 \ /
  Last update: 2016-02-07 17:01    [W:1.474 / U:0.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site