From patchwork Tue Jun 4 11:20:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 17501 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f72.google.com (mail-qe0-f72.google.com [209.85.128.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CD9652390D for ; Tue, 4 Jun 2013 11:21:00 +0000 (UTC) Received: by mail-qe0-f72.google.com with SMTP id b4sf83799qen.7 for ; Tue, 04 Jun 2013 04:21:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:in-reply-to:references:x-gm-message-state :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-google-group-id:list-post:list-help :list-archive:list-unsubscribe; bh=JlIRDTGABbfgXT6NlMhg9kg9giO1tIAWltKY1wXKoBA=; b=gVvs7QqBx1F8uztPaxGYkBQOYVp0C9SbZzct3vAUIJmTraSS5UjDiv2qs+Q2rXYwRt GPtxSZvYKZxEOI6voz1Sg2L2a6Kwa6W7g88dTlMANMZvVbxH218ydk7J8A+3ky1+gF38 makwCkMwBzt3WVCZL14JvP7x5R5pEtw1/6n+wFRBvH6AhgIBW5PHW+YUGCqfXzrAyx2U h1z/B6MF3uRVqCFWVpSgM4cJ9Tm7KAaqFwP7pIyn5YqIIwIjuDieaesmnS6M3J+13m9Q zVW/hfSatqbM2VCwQcQHQcpIejmF9IlFvpw/JH/JfmG1Sg5EO1ELEy2qzZAj8Ddld6uW 263Q== X-Received: by 10.224.36.66 with SMTP id s2mr16240929qad.6.1370344860628; Tue, 04 Jun 2013 04:21:00 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.134.8 with SMTP id pg8ls182823qeb.43.gmail; Tue, 04 Jun 2013 04:21:00 -0700 (PDT) X-Received: by 10.220.138.13 with SMTP id y13mr18503607vct.59.1370344860464; Tue, 04 Jun 2013 04:21:00 -0700 (PDT) Received: from mail-vb0-x230.google.com (mail-vb0-x230.google.com [2607:f8b0:400c:c02::230]) by mx.google.com with ESMTPS id ef7si37308258vdc.150.2013.06.04.04.21.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Jun 2013 04:21:00 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::230 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::230; Received: by mail-vb0-f48.google.com with SMTP id w8so45483vbf.35 for ; Tue, 04 Jun 2013 04:21:00 -0700 (PDT) X-Received: by 10.220.246.8 with SMTP id lw8mr18225430vcb.8.1370344860359; Tue, 04 Jun 2013 04:21:00 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.10.206 with SMTP id pb14csp120228vcb; Tue, 4 Jun 2013 04:20:59 -0700 (PDT) X-Received: by 10.68.36.5 with SMTP id m5mr12296023pbj.55.1370344859353; Tue, 04 Jun 2013 04:20:59 -0700 (PDT) Received: from mail-pd0-f177.google.com (mail-pd0-f177.google.com [209.85.192.177]) by mx.google.com with ESMTPS id ln2si42493680pab.315.2013.06.04.04.20.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Jun 2013 04:20:59 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.177 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.177; Received: by mail-pd0-f177.google.com with SMTP id u10so90791pdi.22 for ; Tue, 04 Jun 2013 04:20:59 -0700 (PDT) X-Received: by 10.66.248.40 with SMTP id yj8mr28005474pac.95.1370344858965; Tue, 04 Jun 2013 04:20:58 -0700 (PDT) Received: from localhost ([223.178.131.200]) by mx.google.com with ESMTPSA id yj2sm62915322pbb.40.2013.06.04.04.20.53 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 04 Jun 2013 04:20:58 -0700 (PDT) From: Viresh Kumar To: mingo@redhat.com, peterz@infradead.org Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, linux-kernel@vger.kernel.org, robin.randhawa@arm.com, Steve.Bannister@arm.com, Liviu.Dudau@arm.com, charles.garcia-tobin@arm.com, arvind.chauhan@arm.com, Viresh Kumar Subject: [PATCH 2/2] sched: Remove unused params of build_sched_domain() Date: Tue, 4 Jun 2013 16:50:19 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQmVFVxud5phZ5KJvHb5FWsi8fCnRgoqdxQi8M2f8Od0Vb2uzsI3zCqLLOxiiwyLAqV4YM6m X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::230 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , build_sched_domain() never uses parameter struct s_data *d and so passing it is useless. Remove it. Signed-off-by: Viresh Kumar --- kernel/sched/core.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 638f6cb..4210c54 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6490,9 +6490,8 @@ static void __sdt_free(const struct cpumask *cpu_map) } struct sched_domain *build_sched_domain(struct sched_domain_topology_level *tl, - struct s_data *d, const struct cpumask *cpu_map, - struct sched_domain_attr *attr, struct sched_domain *child, - int cpu) + const struct cpumask *cpu_map, struct sched_domain_attr *attr, + struct sched_domain *child, int cpu) { struct sched_domain *sd = tl->init(tl, cpu); if (!sd) @@ -6532,7 +6531,7 @@ static int build_sched_domains(const struct cpumask *cpu_map, sd = NULL; for (tl = sched_domain_topology; tl->init; tl++) { - sd = build_sched_domain(tl, &d, cpu_map, attr, sd, i); + sd = build_sched_domain(tl, cpu_map, attr, sd, i); if (!*per_cpu_ptr(d.sd, i)) *per_cpu_ptr(d.sd, i) = sd; if (tl->flags & SDTL_OVERLAP || sched_feat(FORCE_SD_OVERLAP))