blob: abe0b1187faffc1257edf9bcfff5b139a87043d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef __XEN_PERCPU_H__
#define __XEN_PERCPU_H__
#include <asm/percpu.h>
/*
* Separate out the type, so (int[3], foo) works.
*
* The _##name concatenation is being used here to prevent 'name' from getting
* macro expanded, while still allowing a per-architecture symbol name prefix.
*/
#define DEFINE_PER_CPU(type, name) __DEFINE_PER_CPU(type, _##name, )
#define DEFINE_PER_CPU_READ_MOSTLY(type, name) \
__DEFINE_PER_CPU(type, _##name, .read_mostly)
/* Preferred on Xen. Also see arch-defined per_cpu(). */
#define this_cpu(var) __get_cpu_var(var)
/* Linux compatibility. */
#define get_cpu_var(var) this_cpu(var)
#define put_cpu_var(var)
#endif /* __XEN_PERCPU_H__ */
|