Skip to content
  • Peter Zijlstra's avatar
    locking/static_keys: Rework update logic · 706249c2
    Peter Zijlstra authored and Ingo Molnar's avatar Ingo Molnar committed
    
    
    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: default avatarPeter 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: default avatarIngo Molnar <mingo@kernel.org>
    706249c2