Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

-16
-16
include/linux/cpumask.h
··· 559 559 } 560 560 561 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 - 577 - /** 578 562 * cpumask_test_cpu - test for a cpu in a cpumask 579 563 * @cpu: cpu number (< nr_cpu_ids) 580 564 * @cpumask: the cpumask pointer