#define _MCE_H
#include <xen/init.h>
+#include <xen/percpu.h>
#include <xen/sched.h>
#include <xen/smp.h>
+
#include <asm/types.h>
#include <asm/traps.h>
#include <asm/atomic.h>
-#include <asm/percpu.h>
#include "x86_mca.h"
#include "mctelem.h"
extern unsigned long __per_cpu_offset[NR_CPUS];
void percpu_init_areas(void);
-#define __DEFINE_PER_CPU(attr, type, name) \
- attr __typeof__(type) per_cpu_ ## name
-
#define per_cpu(var, cpu) \
(*RELOC_HIDE(&per_cpu__##var, __per_cpu_offset[cpu]))
#define this_cpu(var) \
#define this_cpu_ptr(var) \
(*RELOC_HIDE(var, READ_SYSREG(TPIDR_EL2)))
-#define DECLARE_PER_CPU(type, name) extern __typeof__(type) per_cpu__##name
-
#endif
#endif /* __ARM_PERCPU_H__ */
#define __X86_CPUID_H__
#include <asm/cpufeatureset.h>
-#include <asm/percpu.h>
#ifndef __ASSEMBLY__
#include <xen/types.h>
#include <xen/kernel.h>
+#include <xen/percpu.h>
#include <xen/lib/x86/cpu-policy.h>
#include <xen/lib/x86/cpuid.h>
#include <asm/atomic.h>
#include <asm/numa.h>
#include <xen/cpumask.h>
+#include <xen/percpu.h>
#include <xen/smp.h>
#include <asm/hvm/irq.h>
#include <irq_vectors.h>
-#include <asm/percpu.h>
extern unsigned int nr_irqs_gsi;
extern unsigned int nr_irqs;
void percpu_init_areas(void);
#endif
-#define __DEFINE_PER_CPU(attr, type, name) \
- attr __typeof__(type) per_cpu_ ## name
-
/* var is in discarded region: offset to particular copy we want */
#define per_cpu(var, cpu) \
(*RELOC_HIDE(&per_cpu__##var, __per_cpu_offset[cpu]))
#define this_cpu(var) \
(*RELOC_HIDE(&per_cpu__##var, get_cpu_info()->per_cpu_offset))
-#define DECLARE_PER_CPU(type, name) extern __typeof__(type) per_cpu__##name
-
#define this_cpu_ptr(var) \
(*RELOC_HIDE(var, get_cpu_info()->per_cpu_offset))
#include <asm/percpu.h>
+#define DECLARE_PER_CPU(type, name) \
+ extern __typeof__(type) per_cpu__ ## name
+
+#define __DEFINE_PER_CPU(attr, type, name) \
+ attr __typeof__(type) per_cpu_ ## name
+
/*
* 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.
+ * macro expanded.
*/
#define DEFINE_PER_CPU(type, name) \
__DEFINE_PER_CPU(__section(".bss.percpu"), type, _ ## name)
#include <xen/errno.h>
#include <xen/lib.h>
+#include <xen/percpu.h>
#include <xen/spinlock.h>
-#include <asm/percpu.h>
+
#include "flask.h"
#include "av_permissions.h"
#include "security.h"