Skip to content

Commit 204c083

Browse files
Frederic WeisbeckerIngo Molnar
authored andcommitted
sched/isolation: Rename is_housekeeping_cpu() to housekeeping_cpu()
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>
1 parent e179f5a commit 204c083

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

include/linux/sched/isolation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static inline void housekeeping_affine(struct task_struct *t) { }
2929
static inline void housekeeping_init(void) { }
3030
#endif /* CONFIG_NO_HZ_FULL */
3131

32-
static inline bool is_housekeeping_cpu(int cpu)
32+
static inline bool housekeeping_cpu(int cpu)
3333
{
3434
#ifdef CONFIG_NO_HZ_FULL
3535
if (static_branch_unlikely(&housekeeping_overriden))

kernel/sched/core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ int get_nohz_timer_target(void)
527527
int i, cpu = smp_processor_id();
528528
struct sched_domain *sd;
529529

530-
if (!idle_cpu(cpu) && is_housekeeping_cpu(cpu))
530+
if (!idle_cpu(cpu) && housekeeping_cpu(cpu))
531531
return cpu;
532532

533533
rcu_read_lock();
@@ -536,14 +536,14 @@ int get_nohz_timer_target(void)
536536
if (cpu == i)
537537
continue;
538538

539-
if (!idle_cpu(i) && is_housekeeping_cpu(i)) {
539+
if (!idle_cpu(i) && housekeeping_cpu(i)) {
540540
cpu = i;
541541
goto unlock;
542542
}
543543
}
544544
}
545545

546-
if (!is_housekeeping_cpu(cpu))
546+
if (!housekeeping_cpu(cpu))
547547
cpu = housekeeping_any_cpu();
548548
unlock:
549549
rcu_read_unlock();

kernel/sched/fair.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9027,7 +9027,7 @@ void nohz_balance_enter_idle(int cpu)
90279027
return;
90289028

90299029
/* Spare idle load balancing on CPUs that don't want to be disturbed: */
9030-
if (!is_housekeeping_cpu(cpu))
9030+
if (!housekeeping_cpu(cpu))
90319031
return;
90329032

90339033
if (test_bit(NOHZ_TICK_STOPPED, nohz_flags(cpu)))

0 commit comments

Comments
 (0)