Commit 204c083a authored by Frederic Weisbecker's avatar Frederic Weisbecker Committed by Ingo Molnar

sched/isolation: Rename is_housekeeping_cpu() to housekeeping_cpu()

Fit it into the housekeeping_*() namespace.
Signed-off-by: default avatarFrederic Weisbecker <frederic@kernel.org>
Acked-by: default avatarThomas 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.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent e179f5a0
...@@ -29,7 +29,7 @@ static inline void housekeeping_affine(struct task_struct *t) { } ...@@ -29,7 +29,7 @@ static inline void housekeeping_affine(struct task_struct *t) { }
static inline void housekeeping_init(void) { } static inline void housekeeping_init(void) { }
#endif /* CONFIG_NO_HZ_FULL */ #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 #ifdef CONFIG_NO_HZ_FULL
if (static_branch_unlikely(&housekeeping_overriden)) if (static_branch_unlikely(&housekeeping_overriden))
......
...@@ -527,7 +527,7 @@ int get_nohz_timer_target(void) ...@@ -527,7 +527,7 @@ int get_nohz_timer_target(void)
int i, cpu = smp_processor_id(); int i, cpu = smp_processor_id();
struct sched_domain *sd; struct sched_domain *sd;
if (!idle_cpu(cpu) && is_housekeeping_cpu(cpu)) if (!idle_cpu(cpu) && housekeeping_cpu(cpu))
return cpu; return cpu;
rcu_read_lock(); rcu_read_lock();
...@@ -536,14 +536,14 @@ int get_nohz_timer_target(void) ...@@ -536,14 +536,14 @@ int get_nohz_timer_target(void)
if (cpu == i) if (cpu == i)
continue; continue;
if (!idle_cpu(i) && is_housekeeping_cpu(i)) { if (!idle_cpu(i) && housekeeping_cpu(i)) {
cpu = i; cpu = i;
goto unlock; goto unlock;
} }
} }
} }
if (!is_housekeeping_cpu(cpu)) if (!housekeeping_cpu(cpu))
cpu = housekeeping_any_cpu(); cpu = housekeeping_any_cpu();
unlock: unlock:
rcu_read_unlock(); rcu_read_unlock();
......
...@@ -9027,7 +9027,7 @@ void nohz_balance_enter_idle(int cpu) ...@@ -9027,7 +9027,7 @@ void nohz_balance_enter_idle(int cpu)
return; return;
/* Spare idle load balancing on CPUs that don't want to be disturbed: */ /* Spare idle load balancing on CPUs that don't want to be disturbed: */
if (!is_housekeeping_cpu(cpu)) if (!housekeeping_cpu(cpu))
return; return;
if (test_bit(NOHZ_TICK_STOPPED, nohz_flags(cpu))) if (test_bit(NOHZ_TICK_STOPPED, nohz_flags(cpu)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment