lkml.org 
[lkml]   [2021]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.15 565/917] cpufreq: Fix parameter in parse_perf_domain()
    Date
    From: Hector.Yuan <hector.yuan@mediatek.com>

    [ Upstream commit 4a08e3271c55f8b5d56906a8aa5bd041911cf897 ]

    Pass cpu to parse_perf_domain() instead of pcpu.

    Fixes: 8486a32dd484 ("cpufreq: Add of_perf_domain_get_sharing_cpumask")
    Signed-off-by: Hector.Yuan <hector.yuan@mediatek.com>
    [ Viresh: Massaged changelog ]
    Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    include/linux/cpufreq.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
    index ff88bb3e44fca..66a1f495f01a6 100644
    --- a/include/linux/cpufreq.h
    +++ b/include/linux/cpufreq.h
    @@ -1041,7 +1041,7 @@ static inline int of_perf_domain_get_sharing_cpumask(int pcpu, const char *list_
    if (cpu == pcpu)
    continue;

    - ret = parse_perf_domain(pcpu, list_name, cell_name);
    + ret = parse_perf_domain(cpu, list_name, cell_name);
    if (ret < 0)
    continue;

    --
    2.33.0


    \
     
     \ /
      Last update: 2021-11-16 00:49    [W:2.786 / U:0.072 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site