]> git.karo-electronics.de Git - karo-tx-linux.git/commit
printk/cache: Mark printk_once test variable __read_mostly
authorJoe Perches <joe@perches.com>
Fri, 3 Jan 2014 03:10:11 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:11 +0000 (14:10 +1100)
commite5d1a491bff9a570561e3b3f0fa916e3711248c4
tree486d70f97d57a160dbd936dd932f0c2c02dc9b02
parenta76d154a4b6a8a429d0aed4080b16da6d34cda16
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/cache.h
include/linux/printk.h