Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4121777ybi; Mon, 3 Jun 2019 06:07:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxadTihXsTw4t8JctpsVlw6DCAh24UmnE4XdxKJ0dTz8NZsgfSQjbd3RKtgKIg6OCgkxLZv X-Received: by 2002:a63:81c2:: with SMTP id t185mr28655856pgd.257.1559567264634; Mon, 03 Jun 2019 06:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559567264; cv=none; d=google.com; s=arc-20160816; b=zVEBga0f/hL3llyqQ3nWBEF/FIWIgqSxSywceF4jxbATFD4zgd82S0AVDgYA09W4js Di6vzgfjG8S3oSfrdKpAUQgneant25O2SO/1Jw/mQqG2I0+R/J2RplFJtehnB6QV8+8Z qK/7Bap8rJ47h0dd+5URfJDIA4+f+Ncgrpd969rDhwtjfw+qsPz8w+fodjvaVu+5RDps v3c8AxpBZLu4aQoNRrrECgjmRdPwg1HEABlA8NQYE+ec0VCok/RRcG+cozGWUD+yQmSt MwM5fDBnMY/pIJ1yZsHXyYL5JoAifx69UptDQhkSJWW4EKm07SH+epu4lWtNffi18ZBM UaIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=D6DpzBwzh/Z+6H+FWVWChRq72LuKqmNRa06S+03s8vE=; b=fn5b6RPxKAVhFyEhOoVTNVhy2vGurnGaqhJrikIJ7zX3qp4RlYPI/j1uMJR9NnVGEe h6TCjf28S57ET7fDEKm24UcIZhp1zvoX1l+Cnz2LXCELMXv5NHq499Slju8gzONWBKLo lD+2vKqoDZDPsCAa8jdwUndTBEotv2uTGej9EJeGsE0xSr8Zjtn9pVPu+pnx8d0/0ahz C2fCGem7jrKoPn4xpJ7SRSl1fwA5YfS5UCKBSVXuPiDpL+6trsXGQ9ku5pQcIcBGWSII mKYMiYBqS6nXAEYqX6PN+eB1aWHky0t2VapgdPq1DQylNA3GRveFhs44ZTNgqGJVVjJ5 g6SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019051801 header.b=Ny0Nx61a; 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=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q10si17540092plr.412.2019.06.03.06.07.27; Mon, 03 Jun 2019 06:07:44 -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=@zytor.com header.s=2019051801 header.b=Ny0Nx61a; 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=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728248AbfFCNFS (ORCPT + 99 others); Mon, 3 Jun 2019 09:05:18 -0400 Received: from terminus.zytor.com ([198.137.202.136]:59077 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728223AbfFCNFR (ORCPT ); Mon, 3 Jun 2019 09:05:17 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x53D4wYC604148 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 3 Jun 2019 06:04:58 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x53D4wYC604148 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019051801; t=1559567099; bh=D6DpzBwzh/Z+6H+FWVWChRq72LuKqmNRa06S+03s8vE=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=Ny0Nx61a95BmITLLYKedhcPUC6y2qXRQ6+pAbjMMJ2/Fsb12wCoR1tme6Im/UcVdf xpb7nKqjGmflTgup6T8tFOoKW16HwXnA6nrG/g/WATV+0k0GLsvbSIPea9/BfF+n7g JWn4Z3dLnV9AYrjqYosRpFFptIjqvAh0UYky/uUc0K4k6gt9X3E5nSh2nxCzjgxaTl eTtkGF+9dm8hBnm1rsBbW7/ajcezUj0jMH3oTTcuWpSycPlsQBdtxsFWu4BNSh22K7 C90ZS6wJJVekI/F84OmX21dSncuwz03jLRVPlbFe6vmT+LpN/Ry6vdrRvbJ8vhCMPk +2GjFb3Z4C9LA== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x53D4vHU604145; Mon, 3 Jun 2019 06:04:57 -0700 Date: Mon, 3 Jun 2019 06:04:57 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Dietmar Eggemann Message-ID: Cc: morten.rasmussen@arm.com, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, quentin.perret@arm.com, riel@surriel.com, mingo@kernel.org, dietmar.eggemann@arm.com, tglx@linutronix.de, hpa@zytor.com, peterz@infradead.org, valentin.schneider@arm.com, fweisbec@gmail.com, patrick.bellasi@arm.com, vincent.guittot@linaro.org Reply-To: valentin.schneider@arm.com, fweisbec@gmail.com, patrick.bellasi@arm.com, vincent.guittot@linaro.org, tglx@linutronix.de, hpa@zytor.com, peterz@infradead.org, quentin.perret@arm.com, riel@surriel.com, mingo@kernel.org, dietmar.eggemann@arm.com, torvalds@linux-foundation.org, morten.rasmussen@arm.com, linux-kernel@vger.kernel.org In-Reply-To: <20190527062116.11512-6-dietmar.eggemann@arm.com> References: <20190527062116.11512-6-dietmar.eggemann@arm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] sched/core: Remove sd->*_idx Git-Commit-ID: 0e1fef63d92d61ed561e504c3a078a827a0f9bfe 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 X-Spam-Status: No, score=-0.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, FREEMAIL_FORGED_REPLYTO autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 0e1fef63d92d61ed561e504c3a078a827a0f9bfe Gitweb: https://git.kernel.org/tip/0e1fef63d92d61ed561e504c3a078a827a0f9bfe Author: Dietmar Eggemann AuthorDate: Mon, 27 May 2019 07:21:14 +0100 Committer: Ingo Molnar CommitDate: Mon, 3 Jun 2019 11:49:40 +0200 sched/core: Remove sd->*_idx The sched domain per rq load index files also disappear from the /proc/sys/kernel/sched_domain/cpuX/domainY directories. Signed-off-by: Dietmar Eggemann Signed-off-by: Peter Zijlstra (Intel) Acked-by: Rik van Riel Cc: Frederic Weisbecker Cc: Linus Torvalds Cc: Morten Rasmussen Cc: Patrick Bellasi Cc: Peter Zijlstra Cc: Quentin Perret Cc: Thomas Gleixner Cc: Valentin Schneider Cc: Vincent Guittot Link: https://lkml.kernel.org/r/20190527062116.11512-6-dietmar.eggemann@arm.com Signed-off-by: Ingo Molnar --- include/linux/sched/topology.h | 5 ----- kernel/sched/debug.c | 25 ++++++++++--------------- kernel/sched/topology.c | 10 ---------- 3 files changed, 10 insertions(+), 30 deletions(-) diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h index cfc0a89a7159..53afbe07354a 100644 --- a/include/linux/sched/topology.h +++ b/include/linux/sched/topology.h @@ -84,11 +84,6 @@ struct sched_domain { unsigned int busy_factor; /* less balancing by factor if busy */ unsigned int imbalance_pct; /* No balance until over watermark */ unsigned int cache_nice_tries; /* Leave cache hot tasks for # tries */ - unsigned int busy_idx; - unsigned int idle_idx; - unsigned int newidle_idx; - unsigned int wake_idx; - unsigned int forkexec_idx; int nohz_idle; /* NOHZ IDLE status */ int flags; /* See SD_* */ diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index a0b0d6e21e5b..7ffde8ce82fd 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -251,25 +251,20 @@ set_table_entry(struct ctl_table *entry, static struct ctl_table * sd_alloc_ctl_domain_table(struct sched_domain *sd) { - struct ctl_table *table = sd_alloc_ctl_entry(14); + struct ctl_table *table = sd_alloc_ctl_entry(9); if (table == NULL) return NULL; - set_table_entry(&table[0], "min_interval", &sd->min_interval, sizeof(long), 0644, proc_doulongvec_minmax); - set_table_entry(&table[1], "max_interval", &sd->max_interval, sizeof(long), 0644, proc_doulongvec_minmax); - set_table_entry(&table[2], "busy_idx", &sd->busy_idx, sizeof(int), 0644, proc_dointvec_minmax); - set_table_entry(&table[3], "idle_idx", &sd->idle_idx, sizeof(int), 0644, proc_dointvec_minmax); - set_table_entry(&table[4], "newidle_idx", &sd->newidle_idx, sizeof(int), 0644, proc_dointvec_minmax); - set_table_entry(&table[5], "wake_idx", &sd->wake_idx, sizeof(int), 0644, proc_dointvec_minmax); - set_table_entry(&table[6], "forkexec_idx", &sd->forkexec_idx, sizeof(int), 0644, proc_dointvec_minmax); - set_table_entry(&table[7], "busy_factor", &sd->busy_factor, sizeof(int), 0644, proc_dointvec_minmax); - set_table_entry(&table[8], "imbalance_pct", &sd->imbalance_pct, sizeof(int), 0644, proc_dointvec_minmax); - set_table_entry(&table[9], "cache_nice_tries", &sd->cache_nice_tries, sizeof(int), 0644, proc_dointvec_minmax); - set_table_entry(&table[10], "flags", &sd->flags, sizeof(int), 0644, proc_dointvec_minmax); - set_table_entry(&table[11], "max_newidle_lb_cost", &sd->max_newidle_lb_cost, sizeof(long), 0644, proc_doulongvec_minmax); - set_table_entry(&table[12], "name", sd->name, CORENAME_MAX_SIZE, 0444, proc_dostring); - /* &table[13] is terminator */ + set_table_entry(&table[0], "min_interval", &sd->min_interval, sizeof(long), 0644, proc_doulongvec_minmax); + set_table_entry(&table[1], "max_interval", &sd->max_interval, sizeof(long), 0644, proc_doulongvec_minmax); + set_table_entry(&table[2], "busy_factor", &sd->busy_factor, sizeof(int), 0644, proc_dointvec_minmax); + set_table_entry(&table[3], "imbalance_pct", &sd->imbalance_pct, sizeof(int), 0644, proc_dointvec_minmax); + set_table_entry(&table[4], "cache_nice_tries", &sd->cache_nice_tries, sizeof(int), 0644, proc_dointvec_minmax); + set_table_entry(&table[5], "flags", &sd->flags, sizeof(int), 0644, proc_dointvec_minmax); + set_table_entry(&table[6], "max_newidle_lb_cost", &sd->max_newidle_lb_cost, sizeof(long), 0644, proc_doulongvec_minmax); + set_table_entry(&table[7], "name", sd->name, CORENAME_MAX_SIZE, 0444, proc_dostring); + /* &table[8] is terminator */ return table; } diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index f53f89df837d..63184cf0d0d7 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -1344,11 +1344,6 @@ sd_init(struct sched_domain_topology_level *tl, .imbalance_pct = 125, .cache_nice_tries = 0, - .busy_idx = 0, - .idle_idx = 0, - .newidle_idx = 0, - .wake_idx = 0, - .forkexec_idx = 0, .flags = 1*SD_LOAD_BALANCE | 1*SD_BALANCE_NEWIDLE @@ -1400,13 +1395,10 @@ sd_init(struct sched_domain_topology_level *tl, } else if (sd->flags & SD_SHARE_PKG_RESOURCES) { sd->imbalance_pct = 117; sd->cache_nice_tries = 1; - sd->busy_idx = 2; #ifdef CONFIG_NUMA } else if (sd->flags & SD_NUMA) { sd->cache_nice_tries = 2; - sd->busy_idx = 3; - sd->idle_idx = 2; sd->flags &= ~SD_PREFER_SIBLING; sd->flags |= SD_SERIALIZE; @@ -1419,8 +1411,6 @@ sd_init(struct sched_domain_topology_level *tl, #endif } else { sd->cache_nice_tries = 1; - sd->busy_idx = 2; - sd->idle_idx = 1; } /*