]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
sched/isolation: Rename is_housekeeping_cpu() to housekeeping_cpu()
authorFrederic Weisbecker <frederic@kernel.org>
Fri, 27 Oct 2017 02:42:33 +0000 (04:42 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 27 Oct 2017 07:55:28 +0000 (09:55 +0200)
Fit it into the housekeeping_*() namespace.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Chris Metcalf <cmetcalf@mellanox.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Luiz Capitulino <lcapitulino@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@redhat.com>
Cc: Wanpeng Li <kernellwp@gmail.com>
Link: http://lkml.kernel.org/r/1509072159-31808-7-git-send-email-frederic@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/sched/isolation.h
kernel/sched/core.c
kernel/sched/fair.c

index 194c586fbb120610e1438f6e6a2c526258e4dfb3..ad0f5d986a2e3d7610d5636aa4dedcaf5b1baede 100644 (file)
@@ -29,7 +29,7 @@ static inline void housekeeping_affine(struct task_struct *t) { }
 static inline void housekeeping_init(void) { }
 #endif /* CONFIG_NO_HZ_FULL */
 
-static inline bool is_housekeeping_cpu(int cpu)
+static inline bool housekeeping_cpu(int cpu)
 {
 #ifdef CONFIG_NO_HZ_FULL
        if (static_branch_unlikely(&housekeeping_overriden))
index ad188acb7636ff033e95a5b343646ce6d7f2d94f..d0fb448dd43a1c1fd61f5915a3118fe4eccd96e7 100644 (file)
@@ -527,7 +527,7 @@ int get_nohz_timer_target(void)
        int i, cpu = smp_processor_id();
        struct sched_domain *sd;
 
-       if (!idle_cpu(cpu) && is_housekeeping_cpu(cpu))
+       if (!idle_cpu(cpu) && housekeeping_cpu(cpu))
                return cpu;
 
        rcu_read_lock();
@@ -536,14 +536,14 @@ int get_nohz_timer_target(void)
                        if (cpu == i)
                                continue;
 
-                       if (!idle_cpu(i) && is_housekeeping_cpu(i)) {
+                       if (!idle_cpu(i) && housekeeping_cpu(i)) {
                                cpu = i;
                                goto unlock;
                        }
                }
        }
 
-       if (!is_housekeeping_cpu(cpu))
+       if (!housekeeping_cpu(cpu))
                cpu = housekeeping_any_cpu();
 unlock:
        rcu_read_unlock();
index 591481db8c6af3030fb0d5d08ac4188db26c5d7e..cdece8f967f09e278bf25bd7656b0bc54c81359f 100644 (file)
@@ -9027,7 +9027,7 @@ void nohz_balance_enter_idle(int cpu)
                return;
 
        /* Spare idle load balancing on CPUs that don't want to be disturbed: */
-       if (!is_housekeeping_cpu(cpu))
+       if (!housekeeping_cpu(cpu))
                return;
 
        if (test_bit(NOHZ_TICK_STOPPED, nohz_flags(cpu)))