]> git.baikalelectronics.ru Git - kernel.git/commit
printk/cache: mark printk_once test variable __read_mostly
authorJoe Perches <joe@perches.com>
Thu, 23 Jan 2014 23:54:16 +0000 (15:54 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:36:56 +0000 (16:36 -0800)
commit7041016f5e183a1553fc4d004db67cccef848f1e
tree38c36fb3a1a989f95979e5e48e8b1f21fef88bcf
parent29e08d3d7db78e6550b0b6211844bd323cf163da
printk/cache: mark printk_once test variable __read_mostly

Add #include <linux/cache.h> to define __read_mostly.

Convert cache.h to use uapi/linux/kernel.h instead
of linux/kernel.h to avoid recursive #includes.

Convert the ALIGN macro to __ALIGN_KERNEL.

printk_once only sets the bool variable tested
once so mark it __read_mostly.

Neaten the alignment so it matches the rest of the
pr_<level>_once #defines too.

Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/ia64/include/asm/processor.h
include/linux/cache.h
include/linux/printk.h