diff options
author | Yury Norov <yury.norov@gmail.com> | 2025-03-12 22:19:52 -0400 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2025-04-29 15:58:38 -0400 |
commit | 791a9b25ce2e6ecbe404ee32eed8a96a17e52896 (patch) | |
tree | 7ddd7915e152979bbca858fde1c1dddf3d1bd5f1 | |
parent | e5bf9a4b68fae70e41d1410656490d8ac00c02fe (diff) |
cpumask: drop cpumask_assign_cpu()
Commit decde1fa209323c7 ("cpumask: Add assign cpu") was merged bypassing
cpumasks reviewers. It adds atomic and non-atomic cpumask_assign_cpu()
helpers.
In the same merge window, commit 5c563ee90a22d3 ("cpumask: introduce
assign_cpu() macro") added the same functionality. So now we have it
duplicated.
__cpumask_assign_cpu() has never been used since introducing, and because
this series reworks the only user of cpumask_assign_cpu(), both functions
become a dead code.
Signed-off-by: Yury Norov [NVIDIA] <yury.norov@gmail.com>
-rw-r--r-- | include/linux/cpumask.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h index ba1e232e0200..beff4d26e605 100644 --- a/include/linux/cpumask.h +++ b/include/linux/cpumask.h @@ -559,22 +559,6 @@ static __always_inline void __cpumask_clear_cpu(int cpu, struct cpumask *dstp) } /** - * cpumask_assign_cpu - assign a cpu in a cpumask - * @cpu: cpu number (< nr_cpu_ids) - * @dstp: the cpumask pointer - * @bool: the value to assign - */ -static __always_inline void cpumask_assign_cpu(int cpu, struct cpumask *dstp, bool value) -{ - assign_bit(cpumask_check(cpu), cpumask_bits(dstp), value); -} - -static __always_inline void __cpumask_assign_cpu(int cpu, struct cpumask *dstp, bool value) -{ - __assign_bit(cpumask_check(cpu), cpumask_bits(dstp), value); -} - -/** * cpumask_test_cpu - test for a cpu in a cpumask * @cpu: cpu number (< nr_cpu_ids) * @cpumask: the cpumask pointer |