From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C11D33CEB1; Fri, 29 Aug 2025 15:49:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756482554; cv=none; b=UoPV/sveNxcSXnd4RCqf/jTK1G6sjQMfmwdooasUBTypMXekLPERhZhUOn248dS3hk6WpvZykR9Q3rklS/um5TeG71hjtFyT0Rl54UMIeYz/EX6d/OxTmz1Lgh/ooOzOKCJibxrYWv8I1X0dj09+wyilEQHRdDrjczCMlhtwWxU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756482554; c=relaxed/simple; bh=1sjNIErYPKHTUGf8GFmQpOwZYS7RGtAlT/xdwIhtqi4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nnWsF4Kvh5F+/f+8FSNRDnH9LvTaTI24dhq+FoL/FxIMCZO6E0n9ByefxeNat3KzJe5ChTd8kgUkSS3j012vpJOJZ19JA+VpsjQ+wfV/cdqM5BcYbyj6Q8XPIOaZRYixVb9XfypxLnHnokZnrLZVxnzjPawVfeRhgiPGm5xGqfI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RkJxJIT9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RkJxJIT9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E97BC4CEF0; Fri, 29 Aug 2025 15:49:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756482552; bh=1sjNIErYPKHTUGf8GFmQpOwZYS7RGtAlT/xdwIhtqi4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RkJxJIT9LWmLTgfQ6NbwYDDiBF12gT4Ru1GVKCeHY8I1CDkvp1y/bG4XtFtHPBnRb CT/AasE8/4Gob/oci3IJtkfjnnGeNl0vv+lcdlFoGReAXh0TqD9bzZcbNaYSM9liVu maiERSFxcT57JnVO7oUhLDqS171QN+unqWjx5csiWoqgM0VyF3qEijnhEAdO1UdLvH NakZ9DtztzIhXqGgSaBIpFy8wGBmYzw2f2AuAK3vWCpulsxJFsoB8Fs2NJKuBgA9iy P2BPMiTP9e3GZYn+qPaHx6Se+lwVWu+4hK6zLhXyg7vvL5cs+Y8ygk13M6BEhTNCS4 33Zu3MnrxEr+w== From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , =?UTF-8?q?Michal=20Koutn=C3=BD?= , Johannes Weiner , Marco Crivellari , Michal Hocko , Peter Zijlstra , Tejun Heo , Thomas Gleixner , Vlastimil Babka , Waiman Long , cgroups@vger.kernel.org Subject: [PATCH 18/33] cpuset: Remove cpuset_cpu_is_isolated() Date: Fri, 29 Aug 2025 17:47:59 +0200 Message-ID: <20250829154814.47015-19-frederic@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250829154814.47015-1-frederic@kernel.org> References: <20250829154814.47015-1-frederic@kernel.org> Precedence: bulk X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The set of cpuset isolated CPUs is now included in HK_TYPE_DOMAIN housekeeping cpumask. There is no usecase left interested in just checking what is isolated by cpuset and not by the isolcpus= kernel boot parameter. Signed-off-by: Frederic Weisbecker --- include/linux/cpuset.h | 6 ------ include/linux/sched/isolation.h | 3 +-- kernel/cgroup/cpuset.c | 12 ------------ 3 files changed, 1 insertion(+), 20 deletions(-) diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h index 051d36fec578..a10775a4f702 100644 --- a/include/linux/cpuset.h +++ b/include/linux/cpuset.h @@ -78,7 +78,6 @@ extern void cpuset_lock(void); extern void cpuset_unlock(void); extern void cpuset_cpus_allowed(struct task_struct *p, struct cpumask *mask); extern bool cpuset_cpus_allowed_fallback(struct task_struct *p); -extern bool cpuset_cpu_is_isolated(int cpu); extern nodemask_t cpuset_mems_allowed(struct task_struct *p); #define cpuset_current_mems_allowed (current->mems_allowed) void cpuset_init_current_mems_allowed(void); @@ -208,11 +207,6 @@ static inline bool cpuset_cpus_allowed_fallback(struct task_struct *p) return false; } -static inline bool cpuset_cpu_is_isolated(int cpu) -{ - return false; -} - static inline nodemask_t cpuset_mems_allowed(struct task_struct *p) { return node_possible_map; diff --git a/include/linux/sched/isolation.h b/include/linux/sched/isolation.h index 199d0fc4646f..c02923ed4cbe 100644 --- a/include/linux/sched/isolation.h +++ b/include/linux/sched/isolation.h @@ -83,8 +83,7 @@ static inline void housekeeping_init(void) { } static inline bool cpu_is_isolated(int cpu) { return !housekeeping_test_cpu(cpu, HK_TYPE_DOMAIN) || - !housekeeping_test_cpu(cpu, HK_TYPE_TICK) || - cpuset_cpu_is_isolated(cpu); + !housekeeping_test_cpu(cpu, HK_TYPE_TICK); } #endif /* _LINUX_SCHED_ISOLATION_H */ diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index eb8d01d23af6..df1dfacf5f9d 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -29,7 +29,6 @@ #include #include #include -#include #include #include #include @@ -1353,17 +1352,6 @@ static void update_housekeeping_cpumask(bool isolcpus_updated) WARN_ON_ONCE(ret < 0); } -/** - * cpuset_cpu_is_isolated - Check if the given CPU is isolated - * @cpu: the CPU number to be checked - * Return: true if CPU is used in an isolated partition, false otherwise - */ -bool cpuset_cpu_is_isolated(int cpu) -{ - return cpumask_test_cpu(cpu, isolated_cpus); -} -EXPORT_SYMBOL_GPL(cpuset_cpu_is_isolated); - /* * compute_effective_exclusive_cpumask - compute effective exclusive CPUs * @cs: cpuset -- 2.51.0