]> git.baikalelectronics.ru Git - kernel.git/commit
locking/static_keys: Rework update logic
authorPeter Zijlstra <peterz@infradead.org>
Fri, 24 Jul 2015 13:06:37 +0000 (15:06 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 3 Aug 2015 09:34:15 +0000 (11:34 +0200)
commit1f843d9d42126b084a722b9597b3cfd63a975891
tree5e4520408570e2b0338e1f5043a289da3bef78af
parentd714df31d60454f6e2ede372157d724b0f151188
locking/static_keys: Rework update logic

Instead of spreading the branch_default logic all over the place,
concentrate it into the one jump_label_type() function.

This does mean we need to actually increment/decrement the enabled
count _before_ calling the update path, otherwise jump_label_type()
will not see the right state.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/jump_label.c