Skip to content

Commit 791a9b2

Browse files
committed
cpumask: drop cpumask_assign_cpu()
Commit decde1f ("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 5c563ee ("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>
1 parent e5bf9a4 commit 791a9b2

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

include/linux/cpumask.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -558,22 +558,6 @@ static __always_inline void __cpumask_clear_cpu(int cpu, struct cpumask *dstp)
558558
__clear_bit(cpumask_check(cpu), cpumask_bits(dstp));
559559
}
560560

561-
/**
562-
* cpumask_assign_cpu - assign a cpu in a cpumask
563-
* @cpu: cpu number (< nr_cpu_ids)
564-
* @dstp: the cpumask pointer
565-
* @bool: the value to assign
566-
*/
567-
static __always_inline void cpumask_assign_cpu(int cpu, struct cpumask *dstp, bool value)
568-
{
569-
assign_bit(cpumask_check(cpu), cpumask_bits(dstp), value);
570-
}
571-
572-
static __always_inline void __cpumask_assign_cpu(int cpu, struct cpumask *dstp, bool value)
573-
{
574-
__assign_bit(cpumask_check(cpu), cpumask_bits(dstp), value);
575-
}
576-
577561
/**
578562
* cpumask_test_cpu - test for a cpu in a cpumask
579563
* @cpu: cpu number (< nr_cpu_ids)

0 commit comments

Comments
 (0)