lkml.org 
[lkml]   [2016]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC PATCH 03/19] cpufreq: kill for_each_policy
    Date
    for_each_policy() macro is not used anywhere. Kill it.

    Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
    Cc: Viresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: Juri Lelli <juri.lelli@arm.com>
    ---
    drivers/cpufreq/cpufreq.c | 3 ---
    1 file changed, 3 deletions(-)

    diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
    index 0802705..2e41356 100644
    --- a/drivers/cpufreq/cpufreq.c
    +++ b/drivers/cpufreq/cpufreq.c
    @@ -86,9 +86,6 @@ static struct cpufreq_policy *first_policy(bool active)
    #define for_each_inactive_policy(__policy) \
    for_each_suitable_policy(__policy, false)

    -#define for_each_policy(__policy) \
    - list_for_each_entry(__policy, &cpufreq_policy_list, policy_list)
    -
    /* Iterate over governors */
    static LIST_HEAD(cpufreq_governor_list);
    #define for_each_governor(__governor) \
    --
    2.2.2
    \
     
     \ /
      Last update: 2016-01-11 19:21    [W:3.285 / U:0.324 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site