Skip to content

Commit

Permalink
ia64: add sparse annotation to __ia64_per_cpu_var()
Browse files Browse the repository at this point in the history
ia64 has its own optimized percpu accessor - __ia64_per_cpu_var().
Add percpu sparse annotations to it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Christoph Lameter <cl@linux-foundation.org>
  • Loading branch information
Tejun Heo committed May 12, 2010
1 parent b0c9778 commit 308eb7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/ia64/include/asm/percpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ extern void *per_cpu_init(void);
* On the positive side, using __ia64_per_cpu_var() instead of __get_cpu_var() is slightly
* more efficient.
*/
#define __ia64_per_cpu_var(var) var
#define __ia64_per_cpu_var(var) (*({ \
__verify_pcpu_ptr(&(var)); \
((typeof(var) __kernel __force *)&(var)); \
}))

#include <asm-generic/percpu.h>

Expand Down

0 comments on commit 308eb7a

Please sign in to comment.