lkml.org 
[lkml]   [2022]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v4 12/13] arch_topology: remove the acpi_disabled check
    Date
    "acpi_cpc_valid" function already includes the acpi_disabled check and we can
    remove the duplicated check here

    Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
    Acked-by: Sudeep Holla <sudeep.holla@arm.com>
    Signed-off-by: Perry Yuan <Perry.Yuan@amd.com>
    ---
    drivers/base/arch_topology.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c
    index 579c851a2bd7..73a8cb31529d 100644
    --- a/drivers/base/arch_topology.c
    +++ b/drivers/base/arch_topology.c
    @@ -352,7 +352,7 @@ void topology_init_cpu_capacity_cppc(void)
    struct cppc_perf_caps perf_caps;
    int cpu;

    - if (likely(acpi_disabled || !acpi_cpc_valid()))
    + if (likely(!acpi_cpc_valid()))
    return;

    raw_capacity = kcalloc(num_possible_cpus(), sizeof(*raw_capacity),
    --
    2.32.0
    \
     
     \ /
      Last update: 2022-07-15 12:07    [W:3.368 / U:0.184 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site