diff options
author | Tejun Heo <tj@kernel.org> | 2010-05-12 06:10:39 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-05-12 06:10:39 -0400 |
commit | 308eb7add8adaca8088c28a3f7610069b70d1ad6 (patch) | |
tree | e6aed06a7a7016109cbed8d029946844bcfb85f5 /arch/ia64/include | |
parent | b0c9778b1d07ed3aa7e411db201275553527b1b1 (diff) |
ia64: add sparse annotation to __ia64_per_cpu_var()
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>
Diffstat (limited to 'arch/ia64/include')
-rw-r--r-- | arch/ia64/include/asm/percpu.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/ia64/include/asm/percpu.h b/arch/ia64/include/asm/percpu.h index f7c00a5e0e2b..1bd408265694 100644 --- a/arch/ia64/include/asm/percpu.h +++ b/arch/ia64/include/asm/percpu.h | |||
@@ -39,7 +39,10 @@ extern void *per_cpu_init(void); | |||
39 | * On the positive side, using __ia64_per_cpu_var() instead of __get_cpu_var() is slightly | 39 | * On the positive side, using __ia64_per_cpu_var() instead of __get_cpu_var() is slightly |
40 | * more efficient. | 40 | * more efficient. |
41 | */ | 41 | */ |
42 | #define __ia64_per_cpu_var(var) var | 42 | #define __ia64_per_cpu_var(var) (*({ \ |
43 | __verify_pcpu_ptr(&(var)); \ | ||
44 | ((typeof(var) __kernel __force *)&(var)); \ | ||
45 | })) | ||
43 | 46 | ||
44 | #include <asm-generic/percpu.h> | 47 | #include <asm-generic/percpu.h> |
45 | 48 | ||