From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932318AbdJXO4T (ORCPT ); Tue, 24 Oct 2017 10:56:19 -0400 Received: from terminus.zytor.com ([65.50.211.136]:57361 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751323AbdJXO4Q (ORCPT ); Tue, 24 Oct 2017 10:56:16 -0400 Date: Tue, 24 Oct 2017 07:51:22 -0700 From: tip-bot for Frederic Weisbecker Message-ID: Cc: peterz@infradead.org, cmetcalf@mellanox.com, frederic@kernel.org, paulmck@linux.vnet.ibm.com, lcapitulino@redhat.com, riel@redhat.com, tglx@linutronix.de, kernellwp@gmail.com, mingo@kernel.org, torvalds@linux-foundation.org, cl@linux.com, linux-kernel@vger.kernel.org, efault@gmx.de, hpa@zytor.com Reply-To: hpa@zytor.com, linux-kernel@vger.kernel.org, efault@gmx.de, mingo@kernel.org, kernellwp@gmail.com, tglx@linutronix.de, torvalds@linux-foundation.org, cl@linux.com, paulmck@linux.vnet.ibm.com, lcapitulino@redhat.com, riel@redhat.com, peterz@infradead.org, frederic@kernel.org, cmetcalf@mellanox.com In-Reply-To: <1508850421-10058-7-git-send-email-frederic@kernel.org> References: <1508850421-10058-7-git-send-email-frederic@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] housekeeping: Rename is_housekeeping_cpu to housekeeping_cpu Git-Commit-ID: 0ccafd93ffc33c8c12b53e747e6feb823d3ef33b X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 0ccafd93ffc33c8c12b53e747e6feb823d3ef33b Gitweb: https://git.kernel.org/tip/0ccafd93ffc33c8c12b53e747e6feb823d3ef33b Author: Frederic Weisbecker AuthorDate: Tue, 24 Oct 2017 15:06:55 +0200 Committer: Ingo Molnar CommitDate: Tue, 24 Oct 2017 15:20:14 +0200 housekeeping: Rename is_housekeeping_cpu to housekeeping_cpu To keep a proper housekeeping namespace. Signed-off-by: Frederic Weisbecker Cc: Chris Metcalf Cc: Christoph Lameter Cc: Linus Torvalds Cc: Luiz Capitulino Cc: Mike Galbraith Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Rik van Riel Cc: Thomas Gleixner Cc: Wanpeng Li Link: http://lkml.kernel.org/r/1508850421-10058-7-git-send-email-frederic@kernel.org Signed-off-by: Ingo Molnar --- include/linux/housekeeping.h | 2 +- kernel/sched/core.c | 6 +++--- kernel/sched/fair.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/linux/housekeeping.h b/include/linux/housekeeping.h index cbe8d63..320cc2b 100644 --- a/include/linux/housekeeping.h +++ b/include/linux/housekeeping.h @@ -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)) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index cac8c1e..ee4b641 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -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(); diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 334d845..ed739e84 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -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)))