lkml.org 
[lkml]   [2021]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 07/10] sched/fair: Remove ifdefs in waker_affine_idler_llc
    Date
    Now that idle callbacks are updating nr_busy_cpus, remove ifdefs in
    wake_affine_idler_llc

    Cc: LKML <linux-kernel@vger.kernel.org>
    Cc: Gautham R Shenoy <ego@linux.vnet.ibm.com>
    Cc: Parth Shah <parth@linux.ibm.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Valentin Schneider <valentin.schneider@arm.com>
    Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
    Cc: Mel Gorman <mgorman@techsingularity.net>
    Cc: Vincent Guittot <vincent.guittot@linaro.org>
    Cc: Rik van Riel <riel@surriel.com>
    Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
    ---
    kernel/sched/fair.c | 4 ----
    1 file changed, 4 deletions(-)

    diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
    index 00bcf1d861b5..8f752f77b76f 100644
    --- a/kernel/sched/fair.c
    +++ b/kernel/sched/fair.c
    @@ -5870,9 +5870,7 @@ wake_affine_weight(struct sched_domain *sd, struct task_struct *p,

    static int wake_affine_idler_llc(struct task_struct *p, int this_cpu, int prev_cpu, int sync)
    {
    -#ifdef CONFIG_NO_HZ_COMMON
    int pnr_busy, pllc_size, tnr_busy, tllc_size;
    -#endif
    struct sched_domain_shared *tsds, *psds;
    int diff;

    @@ -5909,7 +5907,6 @@ static int wake_affine_idler_llc(struct task_struct *p, int this_cpu, int prev_c
    }
    }

    -#ifdef CONFIG_NO_HZ_COMMON
    tnr_busy = atomic_read(&tsds->nr_busy_cpus);
    pnr_busy = atomic_read(&psds->nr_busy_cpus);

    @@ -5924,7 +5921,6 @@ static int wake_affine_idler_llc(struct task_struct *p, int this_cpu, int prev_c
    return this_cpu;
    if (diff < 0)
    return prev_cpu;
    -#endif /* CONFIG_NO_HZ_COMMON */

    return nr_cpumask_bits;
    }
    --
    2.18.2
    \
     
     \ /
      Last update: 2021-04-22 12:27    [W:6.146 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site