|
@@ -66,6 +66,14 @@
|
|
|
DEFINE_PER_CPU_SECTION(type, name, PER_CPU_SHARED_ALIGNED_SECTION) \
|
|
|
____cacheline_aligned_in_smp
|
|
|
|
|
|
+#define DECLARE_PER_CPU_ALIGNED(type, name) \
|
|
|
+ DECLARE_PER_CPU_SECTION(type, name, PER_CPU_ALIGNED_SECTION) \
|
|
|
+ ____cacheline_aligned
|
|
|
+
|
|
|
+#define DEFINE_PER_CPU_ALIGNED(type, name) \
|
|
|
+ DEFINE_PER_CPU_SECTION(type, name, PER_CPU_ALIGNED_SECTION) \
|
|
|
+ ____cacheline_aligned
|
|
|
+
|
|
|
/*
|
|
|
* Declaration/definition used for per-CPU variables that must be page aligned.
|
|
|
*/
|