From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752711AbcEIK5P (ORCPT ); Mon, 9 May 2016 06:57:15 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:49267 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751729AbcEIK5N (ORCPT ); Mon, 9 May 2016 06:57:13 -0400 Message-Id: <20160509105210.445995912@infradead.org> User-Agent: quilt/0.61-1 Date: Mon, 09 May 2016 12:48:08 +0200 From: Peter Zijlstra To: mingo@kernel.org, linux-kernel@vger.kernel.org Cc: clm@fb.com, matt@codeblueprint.co.uk, mgalbraith@suse.de, tglx@linutronix.de, fweisbec@gmail.com, peterz@infradead.org Subject: [RFC][PATCH 1/7] sched: Remove unused @cpu argument from destroy_sched_domain*() References: <20160509104807.284575300@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline; filename=peterz-sched-kill-sd_busy.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Small cleanup; nothing uses the @cpu argument so make it go away. Signed-off-by: Peter Zijlstra (Intel) --- kernel/sched/core.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5841,15 +5841,15 @@ static void free_sched_domain(struct rcu kfree(sd); } -static void destroy_sched_domain(struct sched_domain *sd, int cpu) +static void destroy_sched_domain(struct sched_domain *sd) { call_rcu(&sd->rcu, free_sched_domain); } -static void destroy_sched_domains(struct sched_domain *sd, int cpu) +static void destroy_sched_domains(struct sched_domain *sd) { for (; sd; sd = sd->parent) - destroy_sched_domain(sd, cpu); + destroy_sched_domain(sd); } /* @@ -5921,7 +5921,7 @@ cpu_attach_domain(struct sched_domain *s */ if (parent->flags & SD_PREFER_SIBLING) tmp->flags |= SD_PREFER_SIBLING; - destroy_sched_domain(parent, cpu); + destroy_sched_domain(parent); } else tmp = tmp->parent; } @@ -5929,7 +5929,7 @@ cpu_attach_domain(struct sched_domain *s if (sd && sd_degenerate(sd)) { tmp = sd; sd = sd->parent; - destroy_sched_domain(tmp, cpu); + destroy_sched_domain(tmp); if (sd) sd->child = NULL; } @@ -5939,7 +5939,7 @@ cpu_attach_domain(struct sched_domain *s rq_attach_root(rq, rd); tmp = rq->sd; rcu_assign_pointer(rq->sd, sd); - destroy_sched_domains(tmp, cpu); + destroy_sched_domains(tmp); update_top_cache_domain(cpu); }