From patchwork Wed Aug 29 13:19:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 145428 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp670068ljw; Wed, 29 Aug 2018 06:19:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZyvTTXiay15fQATCLQ+JBfWAN2juI9PtThnFy+DfRw88gaaTjJOBHSTGsFn6SnShppAfCw X-Received: by 2002:a17:902:744a:: with SMTP id e10-v6mr5979145plt.165.1535548766446; Wed, 29 Aug 2018 06:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535548766; cv=none; d=google.com; s=arc-20160816; b=qyuBHtU+JjC4ZADIR2rfCZe2ZRxgizUqWXSUEVquaPP6uff75WlRiqM6wdIUjnjqpF Z264SdtyICbqtK6lH+oAXsAEK2WPboEt+VIi3vuXuPVJCmjVafMpFa+P/U/8N2rw4Dlm 3S1BzOLhVf2nX4K77wCSPPh8xFbfH+G0Y5bBNPMUSkAPUJDe8YigMOON1KfGWcoyLFqK 2JdPfHK07p78qQ4gwvqutsSzFq0WUlq9JqUfRCAylSg0ovC6iwEyVl7+cs1gzuUpiyZL ullTdjJ0vHeyxqnbdwOT68oIAqhM5PfLbbdd5bBSVZgppndF2MkGOx0nCLYKYYpDby0c 6Wig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=RP6kCwNOibKOgIJWhXXcFj4YF7N90rBS1ViaOhyM7Zc=; b=y8/NENSL5gldy47q65XCwOI67zTF3Nz5KvOtZlXPiptT7faDnGyn5pgkY64GZgMGBm 3tM09RkVVL0wPVvxqIoqMdjMyIduG89dCw+sg02E5EHP+H5An4mcn4D5Irjoea3Z1Ppc BsShK0RV7pPfcXA5htIe0ykcQoity5YSCGdxqCz61gGuk/zewo8O3xcWqiewGZ5UhdXX 7zKDy+hI088eUfGGJU3vOajVLwpmX/VprbyWOCHy5gqq39FIrh901+9ltsPrGn+Y7gRU 7lzWdnDqIcSpN+2idBBy2Pjfqj/IyGv/H6LpVIwfZ44T5ixpoL2kbQd6A37bgieC3BXS CkBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h+wbfEvg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y63-v6si3740311pgd.435.2018.08.29.06.19.26; Wed, 29 Aug 2018 06:19:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h+wbfEvg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728694AbeH2RQS (ORCPT + 32 others); Wed, 29 Aug 2018 13:16:18 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:32841 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727204AbeH2RQR (ORCPT ); Wed, 29 Aug 2018 13:16:17 -0400 Received: by mail-wm0-f68.google.com with SMTP id i134-v6so4496750wmf.0 for ; Wed, 29 Aug 2018 06:19:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RP6kCwNOibKOgIJWhXXcFj4YF7N90rBS1ViaOhyM7Zc=; b=h+wbfEvgSC+cDZM+1nbd8aw0c8mIYYeTysKD+8GGjLD2gzzkyY6TbfGpCTquRCCViC u0rLLyLhUksnOD3YEBDOORY6wa13HwPIua84iQ7ai0W/tXRWggFerBhk0HJmk1WDvebW vtib+KMqTL3+uvEGt8AeQ+I+SXV9DKTHbb91g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RP6kCwNOibKOgIJWhXXcFj4YF7N90rBS1ViaOhyM7Zc=; b=MjW3Kl4unUAa9GRmSU1ai9KBipSB+rIwNeaYt21qLi6I7Uh8pmcowUFlOBB336s4Ya WGLMU0ZhpdmYfs8zVvGhI3A8GWVm11sDa1bdXHvYBidDFG3mA5/0MdnfCdm2rlnTQoqV bziMgDh17+618DBIwjzZQI9DwmL8WQ18nziDRQubRhbw/BRD67uLLgqIlIapaRv0gDPU UcK2MYrzuUb7fGmm4NzBpgvekHFDHddxgEQpcHzsyBGp6CATYleVh2ASf86aU4WczXbf WKWBJvLlPLvAO672sVxfsFUljhvOgSXg8dS4Lrm3ei/hlFmjrYqu8oITZmfet+IbL0WY 6BfQ== X-Gm-Message-State: APzg51ACrzVxfWmlgxq+uB/QBS7NFsoaHFwH2wJj5yuNdTrTCyGF++/2 aspq0isnV/+ga53gr/auFip/Qw== X-Received: by 2002:a1c:c501:: with SMTP id v1-v6mr4119018wmf.115.1535548761059; Wed, 29 Aug 2018 06:19:21 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:f:6020:4c23:4749:7ea6:c5af]) by smtp.gmail.com with ESMTPSA id a37-v6sm9532723wrc.21.2018.08.29.06.19.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Aug 2018 06:19:20 -0700 (PDT) From: Vincent Guittot To: peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org Cc: Vincent Guittot , Srikar Dronamraju , Rik van Riel Subject: [PATCH 2/4] sched/numa: remove unused nr_running field Date: Wed, 29 Aug 2018 15:19:10 +0200 Message-Id: <1535548752-4434-3-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535548752-4434-1-git-send-email-vincent.guittot@linaro.org> References: <1535548752-4434-1-git-send-email-vincent.guittot@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org nr_running in struct numa_stats is not used anywhere in the code. Remove it. Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Srikar Dronamraju Cc: Rik van Riel Cc: linux-kernel@vger.kernel.org (open list) Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 3 --- 1 file changed, 3 deletions(-) -- 2.7.4 Reviewed-by: Srikar Dronamraju diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index c2b8bf4..cff1682 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -1454,8 +1454,6 @@ struct numa_stats { /* Total compute capacity of CPUs on a node */ unsigned long compute_capacity; - - unsigned int nr_running; }; /* @@ -1469,7 +1467,6 @@ static void update_numa_stats(struct numa_stats *ns, int nid) for_each_cpu(cpu, cpumask_of_node(nid)) { struct rq *rq = cpu_rq(cpu); - ns->nr_running += rq->nr_running; ns->load += weighted_cpuload(rq); ns->compute_capacity += capacity_of(cpu); }