Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1619422

[PATCH] Remove cpuset_update_active_cpus()'s parameter.

Path csiph.com!news.mixmin.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod
From Rakib Mullick <rakib.mullick@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] Remove cpuset_update_active_cpus()'s parameter.
Date Sun, 09 Apr 2017 03:40:02 +0200
Message-ID <tu9ZE-4FS-15@gated-at.bofh.it> (permalink)
X-Original-To linux-kernel@vger.kernel.org, mingo@redhat.com, tj@kernel.org
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=spgWP1wuFX5M4FW3e0ajH6EJXYmtMmUdkpi3rM2j1io=; b=hYoHGjFa88zC7t6wrgrIMSMjLqSF1QUPANc9YfrEY+rEbg5mVSgq/buBJvQtwE51bM Pissf2UfUzp8smS2L5EnZFtrsi43iT+rbmGyP+G1DgTrEAdQY3RVsp7CIh8jseUne3Yk id7IUtQMICpR4b0yDeI/z7KcNMwFq3qXMGWVj9e/NNY7fVCDrMRClFJzuZJK9FiWKv2/ ErulkOI7yRLWngfqDb3kO6Jzyb3VhCUH9T4qDGPtdfDynmakxpkbayXzUQ2BHSZ+7Wvk rt9jOX1Q46F66JzkRIQXgPoKN2gp2kWpfBPhZiOliIEOrJfg/OU9pAoYdYYQwHhtI3Kn VyOw==
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; bh=spgWP1wuFX5M4FW3e0ajH6EJXYmtMmUdkpi3rM2j1io=; b=Mq0mpjgBox3m47RDdBpaMMNvssqw1YEwA6EEQHVWhy8X/ytcgtSeYuGGZlgj4YxHzO Okb7+dwIztuLGzvUONlaWVVFT47MytlMrE20eBO9021aHkL91iGH5cxtXE58++6MZDVe hMHkgedofWXEBCGuYPRK21TFKKpRt564g2V/97o0dFUZVqBIQHNFXnzrqDtSrnyw0AY+ 7DhXP8lBi8HH7Y5WuQrQOuV44BtoCbjvfFdVaLDwkmvesUqps1abhK8IEUVP0OFEYkBo 9BRZvv+8gDNtmeba2wBEjehJTZHg1vVupV73wTi1UjMdsMW6ULcR6x1WKLJkP5+OEoev 32bg==
X-Gm-Message-State AFeK/H2n4RY2r3JxblQqO3a7J08rLuY+FNyRthtncVIrS7aNNljZHzoz5VaP9Tq1J+W99A==
X-Received by 10.99.120.74 with SMTP id t71mr49208103pgc.184.1491701864512; Sat, 08 Apr 2017 18:37:44 -0700 (PDT)
X-Mailer git-send-email 2.9.3
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 69
Organization linux.* mail to news gateway
X-Original-Cc Rakib Mullick <rakib.mullick@gmail.com>, cgroups@vger.kernel.org, akpm@linux-foundation.org, peterz@infradead.org, lizefan@huawei.com
X-Original-Date Sun, 9 Apr 2017 07:36:14 +0600
X-Original-Message-ID <20170409013614.7138-1-rakib.mullick@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1619422

Show key headers only | View raw


In cpuset_update_active_cpus(), cpu_online isn't used anymore. Remove
it.

Signed-off-by: Rakib Mullick<rakib.mullick@gmail.com>
---
 include/linux/cpuset.h | 4 ++--
 kernel/cgroup/cpuset.c | 2 +-
 kernel/sched/core.c    | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h
index 611fce5..119a3f9 100644
--- a/include/linux/cpuset.h
+++ b/include/linux/cpuset.h
@@ -42,7 +42,7 @@ static inline void cpuset_dec(void)
 
 extern int cpuset_init(void);
 extern void cpuset_init_smp(void);
-extern void cpuset_update_active_cpus(bool cpu_online);
+extern void cpuset_update_active_cpus(void);
 extern void cpuset_cpus_allowed(struct task_struct *p, struct cpumask *mask);
 extern void cpuset_cpus_allowed_fallback(struct task_struct *p);
 extern nodemask_t cpuset_mems_allowed(struct task_struct *p);
@@ -155,7 +155,7 @@ static inline bool cpusets_enabled(void) { return false; }
 static inline int cpuset_init(void) { return 0; }
 static inline void cpuset_init_smp(void) {}
 
-static inline void cpuset_update_active_cpus(bool cpu_online)
+static inline void cpuset_update_active_cpus(void)
 {
 	partition_sched_domains(1, NULL, NULL);
 }
diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c
index 0f41292..d6e8ded 100644
--- a/kernel/cgroup/cpuset.c
+++ b/kernel/cgroup/cpuset.c
@@ -2354,7 +2354,7 @@ static void cpuset_hotplug_workfn(struct work_struct *work)
 		rebuild_sched_domains();
 }
 
-void cpuset_update_active_cpus(bool cpu_online)
+void cpuset_update_active_cpus(void)
 {
 	/*
 	 * We're inside cpu hotplug critical region which usually nests
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 3b31fc0..430b046 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5732,7 +5732,7 @@ static void cpuset_cpu_active(void)
 		 * cpuset configurations.
 		 */
 	}
-	cpuset_update_active_cpus(true);
+	cpuset_update_active_cpus();
 }
 
 static int cpuset_cpu_inactive(unsigned int cpu)
@@ -5755,7 +5755,7 @@ static int cpuset_cpu_inactive(unsigned int cpu)
 
 		if (overflow)
 			return -EBUSY;
-		cpuset_update_active_cpus(false);
+		cpuset_update_active_cpus();
 	} else {
 		num_cpus_frozen++;
 		partition_sched_domains(1, NULL, NULL);
-- 
2.9.3

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH]  Remove cpuset_update_active_cpus()'s parameter. Rakib Mullick <rakib.mullick@gmail.com> - 2017-04-09 03:40 +0200
  Re: [PATCH] Remove cpuset_update_active_cpus()'s parameter. Zefan Li <lizefan@huawei.com> - 2017-04-10 03:50 +0200

csiph-web