]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/percpu-defs.h
x86, 32-bit: Align percpu area and irq stacks to THREAD_SIZE
[karo-tx-linux.git] / include / linux / percpu-defs.h
index ce2dc655cd1d40a6765acc2dd3f49e104bca4f5c..ab20d119a85d6eb031b2fdbf0ff919f03307330c 100644 (file)
        DEFINE_PER_CPU_SECTION(type, name, "..page_aligned")            \
        __aligned(PAGE_SIZE)
 
+/*
+ * Declaration/definition used for large per-CPU variables that must be
+ * aligned to something larger than the pagesize.
+ */
+#define DECLARE_PER_CPU_MULTIPAGE_ALIGNED(type, name, size)            \
+       DECLARE_PER_CPU_SECTION(type, name, "..page_aligned")           \
+       __aligned(size)
+
+#define DEFINE_PER_CPU_MULTIPAGE_ALIGNED(type, name, size)             \
+       DEFINE_PER_CPU_SECTION(type, name, "..page_aligned")            \
+       __aligned(size)
+
 /*
  * Intermodule exports for per-CPU variables.  sparse forgets about
  * address space across EXPORT_SYMBOL(), change EXPORT_SYMBOL() to