mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
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>
This commit is contained in:
parent
b0c9778b1d
commit
308eb7add8
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user