mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-07-01 23:53:16 -04:00
cpumask: change cpumask_of_cpu_ptr to use new cpumask_of_cpu
* Replace previous instances of the cpumask_of_cpu_ptr* macros with a the new (lvalue capable) generic cpumask_of_cpu(). Signed-off-by: Mike Travis <travis@sgi.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jack Steiner <steiner@sgi.com> Cc: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
6524d938b3
commit
0bc3cc03fa
17 changed files with 37 additions and 83 deletions
|
@ -11,7 +11,6 @@ notrace unsigned int debug_smp_processor_id(void)
|
|||
{
|
||||
unsigned long preempt_count = preempt_count();
|
||||
int this_cpu = raw_smp_processor_id();
|
||||
cpumask_of_cpu_ptr_declare(this_mask);
|
||||
|
||||
if (likely(preempt_count))
|
||||
goto out;
|
||||
|
@ -23,9 +22,7 @@ notrace unsigned int debug_smp_processor_id(void)
|
|||
* Kernel threads bound to a single CPU can safely use
|
||||
* smp_processor_id():
|
||||
*/
|
||||
cpumask_of_cpu_ptr_next(this_mask, this_cpu);
|
||||
|
||||
if (cpus_equal(current->cpus_allowed, *this_mask))
|
||||
if (cpus_equal(current->cpus_allowed, cpumask_of_cpu(this_cpu)))
|
||||
goto out;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue