]> git.karo-electronics.de Git - linux-beck.git/commit
documentation: Fix control dependency and identical stores
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 30 Dec 2015 00:23:18 +0000 (16:23 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 14 Mar 2016 22:52:16 +0000 (15:52 -0700)
commit7817b799ed6b270fbf7f2b30efd0ae011dfc9644
tree6f83b4f9f823160fb20b6896ea7f3be7d6fdb633
parent92e963f50fc74041b5e9e744c330dca48e04f08d
documentation: Fix control dependency and identical stores

The summary of the "CONTROL DEPENDENCIES" section incorrectly states that
barrier() may be used to prevent compiler reordering when more than one
leg of the control-dependent "if" statement start with identical stores.
This is incorrect at high optimization levels.  This commit therefore
updates the summary to match the detailed description.

Reported by: Jianyu Zhan <nasa4836@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Documentation/memory-barriers.txt