]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
printk: Remove superfluous memory barriers from printk_safe
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 11 Oct 2017 16:46:47 +0000 (12:46 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 13 Oct 2017 15:08:01 +0000 (11:08 -0400)
commitaf41acf8347dd6d11a2a29a11e2866ca4892d600
tree86c62ba857c8a0de3fafc4928fca9b01b0f232de
parent8715b108cd75523c9b2e833cdcd7aeb363767f95
printk: Remove superfluous memory barriers from printk_safe

The variable printk_safe_irq_ready is set and never cleared at system
boot up, when there's only one CPU active. It is set before other
CPUs come on line. Also, it is extremely unlikely that an NMI would
trigger this early in boot up (which I wonder why we even have this
variable at all).

Also mark the printk_safe_irq_ready as read mostly, as it is set at
system boot up, and never touched again.

Link: http://lkml.kernel.org/r/20171011124647.7781f98f@gandalf.local.home
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/printk/printk_safe.c