Skip to content

Commit

Permalink
cpumask: Optimize cpumask_of_cpu in lib/smp_processor_id.c, fix
Browse files Browse the repository at this point in the history
fix typo.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Jul 18, 2008
1 parent eb53fac commit 06f8d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/smp_processor_id.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,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, cpu);
cpumask_of_cpu_ptr_next(this_mask, this_cpu);

if (cpus_equal(current->cpus_allowed, *this_mask))
goto out;
Expand Down

0 comments on commit 06f8d00

Please sign in to comment.