Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp811904ybh; Wed, 11 Mar 2020 11:18:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt7/kdC4j9mm2aLVA0NRDi0s5tYMyqFmxZfnhZCyzKOEmkUJ+K9NcqiPoQxUgbk8McdqyB3 X-Received: by 2002:a4a:95a8:: with SMTP id o37mr1144443ooi.40.1583950712268; Wed, 11 Mar 2020 11:18:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583950712; cv=none; d=google.com; s=arc-20160816; b=vgTpyoXyIZ1chIyByj5X+8YjoKeKlCf0JI/EgRQTN7/YCMZj/po4vHd+bfOjkhOE/+ Ct8YEN1EsjKwbjcs5+9zQea1ap6ONR6qm3du2qMBnAeIaLo0S8YdAPSv7kayOT0vmI+3 fVIAF6yCrqPef257R/Pgl9LSj6H5Isi8gMfNbKmoVuCyLuu9eeq5p44ZIZNZfmmenfLD Zlo/swiwRtnF1JHrULNHs0tHPsURPGYDbr7vQ6oVwf63jI8Fke541jsNzP+E9d4d2Sm5 pvoFNcisa4aJhN6XgGE88H4XPNSGskxQoxyfWB6f4MT+tjukgGF3ez1WSiM0rVZo5CSA g85w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=VkqYETM191z1HVRRuQXL2HtsUyFhz0eu0iLWP/Hy5CY=; b=mSfSqk9zeqK0vC/FzcLdSQVvwjo6G3vncrK7VLOWZoRJPQM/Q46jfZSQT3VmrLJNbS rAyoRcr0dF7yKrwd7GC2dC6c6b7ncNMcacf897/RyhmYuDFs/SZc4B+5HHYf8LsKU8Vu +qAftTk3LH+I+zI2bSNUs+GORDQdYT/z+uEfEybC0YjVY/ZSJx84MGX3y4GZ2R8dh8Yf pl6IAyBe5//O2+2ST/NRe4S7bI0ZlDmLXVWcBJ+MRahUybQIneRyvh8Q81tppo0wie3s OqCP+puGHsvMEKQDJxyTjaq3k+3nHHVcG1uPW/E/C7mKMszabv0E3MA0hJ+S9gnkkm5/ x94g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u199si1563550oif.110.2020.03.11.11.18.15; Wed, 11 Mar 2020 11:18:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730873AbgCKSRS (ORCPT + 99 others); Wed, 11 Mar 2020 14:17:18 -0400 Received: from foss.arm.com ([217.140.110.172]:53218 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730810AbgCKSQ5 (ORCPT ); Wed, 11 Mar 2020 14:16:57 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 25DF2FEC; Wed, 11 Mar 2020 11:16:57 -0700 (PDT) Received: from e113632-lin.cambridge.arm.com (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 41FAC3F6CF; Wed, 11 Mar 2020 11:16:56 -0700 (PDT) From: Valentin Schneider To: linux-kernel@vger.kernel.org Cc: mingo@kernel.org, peterz@infradead.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com Subject: [PATCH v2 4/9] sched/topology: Kill SD_LOAD_BALANCE Date: Wed, 11 Mar 2020 18:15:56 +0000 Message-Id: <20200311181601.18314-5-valentin.schneider@arm.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200311181601.18314-1-valentin.schneider@arm.com> References: <20200311181601.18314-1-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org That flag is set unconditionally in sd_init(), and no one checks for it anymore. Remove it. Signed-off-by: Valentin Schneider --- include/linux/sched/topology.h | 29 ++++++++++++++--------------- kernel/sched/topology.c | 3 +-- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h index f341163fedc9..8de2f9744569 100644 --- a/include/linux/sched/topology.h +++ b/include/linux/sched/topology.h @@ -11,21 +11,20 @@ */ #ifdef CONFIG_SMP -#define SD_LOAD_BALANCE 0x0001 /* Do load balancing on this domain. */ -#define SD_BALANCE_NEWIDLE 0x0002 /* Balance when about to become idle */ -#define SD_BALANCE_EXEC 0x0004 /* Balance on exec */ -#define SD_BALANCE_FORK 0x0008 /* Balance on fork, clone */ -#define SD_BALANCE_WAKE 0x0010 /* Balance on wakeup */ -#define SD_WAKE_AFFINE 0x0020 /* Wake task to waking CPU */ -#define SD_ASYM_CPUCAPACITY 0x0040 /* Domain members have different CPU capacities */ -#define SD_SHARE_CPUCAPACITY 0x0080 /* Domain members share CPU capacity */ -#define SD_SHARE_POWERDOMAIN 0x0100 /* Domain members share power domain */ -#define SD_SHARE_PKG_RESOURCES 0x0200 /* Domain members share CPU pkg resources */ -#define SD_SERIALIZE 0x0400 /* Only a single load balancing instance */ -#define SD_ASYM_PACKING 0x0800 /* Place busy groups earlier in the domain */ -#define SD_PREFER_SIBLING 0x1000 /* Prefer to place tasks in a sibling domain */ -#define SD_OVERLAP 0x2000 /* sched_domains of this level overlap */ -#define SD_NUMA 0x4000 /* cross-node balancing */ +#define SD_BALANCE_NEWIDLE 0x0001 /* Balance when about to become idle */ +#define SD_BALANCE_EXEC 0x0002 /* Balance on exec */ +#define SD_BALANCE_FORK 0x0004 /* Balance on fork, clone */ +#define SD_BALANCE_WAKE 0x0008 /* Balance on wakeup */ +#define SD_WAKE_AFFINE 0x0010 /* Wake task to waking CPU */ +#define SD_ASYM_CPUCAPACITY 0x0020 /* Domain members have different CPU capacities */ +#define SD_SHARE_CPUCAPACITY 0x0040 /* Domain members share CPU capacity */ +#define SD_SHARE_POWERDOMAIN 0x0080 /* Domain members share power domain */ +#define SD_SHARE_PKG_RESOURCES 0x0100 /* Domain members share CPU pkg resources */ +#define SD_SERIALIZE 0x0200 /* Only a single load balancing instance */ +#define SD_ASYM_PACKING 0x0400 /* Place busy groups earlier in the domain */ +#define SD_PREFER_SIBLING 0x0800 /* Prefer to place tasks in a sibling domain */ +#define SD_OVERLAP 0x1000 /* sched_domains of this level overlap */ +#define SD_NUMA 0x2000 /* cross-node balancing */ #ifdef CONFIG_SCHED_SMT static inline int cpu_smt_flags(void) diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 79a85827be2f..6077b23f9723 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -1333,8 +1333,7 @@ sd_init(struct sched_domain_topology_level *tl, .cache_nice_tries = 0, - .flags = 1*SD_LOAD_BALANCE - | 1*SD_BALANCE_NEWIDLE + .flags = 1*SD_BALANCE_NEWIDLE | 1*SD_BALANCE_EXEC | 1*SD_BALANCE_FORK | 0*SD_BALANCE_WAKE -- 2.24.0