mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02: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:
@@ -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;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user