]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/linux/percpu-defs.h
x86, percpu: Fix DECLARE/DEFINE_PER_CPU_PAGE_ALIGNED()
[mirror_ubuntu-artful-kernel.git] / include / linux / percpu-defs.h
index 68438e18fff4fde80a80af87a00748a3a69b44b7..afd5f8b7061f32fc3e05dc13f9075af084b138dd 100644 (file)
 /*
  * Declaration/definition used for per-CPU variables that must be page aligned.
  */
-#define DECLARE_PER_CPU_PAGE_ALIGNED(type, name)                               \
-       DECLARE_PER_CPU_SECTION(type, name, ".page_aligned")
+#define DECLARE_PER_CPU_PAGE_ALIGNED(type, name)                       \
+       DECLARE_PER_CPU_SECTION(type, name, ".page_aligned")            \
+       __aligned(PAGE_SIZE)
 
 #define DEFINE_PER_CPU_PAGE_ALIGNED(type, name)                                \
-       DEFINE_PER_CPU_SECTION(type, name, ".page_aligned")
+       DEFINE_PER_CPU_SECTION(type, name, ".page_aligned")             \
+       __aligned(PAGE_SIZE)
 
 /*
  * Intermodule exports for per-CPU variables.