lkml.org 
[lkml]   [2016]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/2] cpufreq: governor: CPUFREQ_GOV_POLICY_EXIT never fails
    On 12-05-16, 15:13, Rafael J. Wysocki wrote:
    > From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    >
    > None of the cpufreq governors currently in the tree will ever fail
    > an invocation of the ->governor() callback with the event argument
    > equal to CPUFREQ_GOV_POLICY_EXIT (unless invoked with incorrect
    > arguments which doesn't matter anyway) and it wouldn't really
    > make sense to fail it, because the caller won't be able to handle
    > that failure in a meaningful way.
    >
    > Accordingly, rearrange the code in the core to make it clear that
    > this call never fails.
    >
    > Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    > ---
    > drivers/cpufreq/cpufreq.c | 35 ++++++++++++-----------------------
    > 1 file changed, 12 insertions(+), 23 deletions(-)

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

    --
    viresh

    \
     
     \ /
      Last update: 2016-05-13 05:21    [W:2.959 / U:0.964 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site