x86, tsc, locking/static_keys: Employ static_branch_likely()
authorPeter Zijlstra <peterz@infradead.org>
Fri, 24 Jul 2015 14:34:32 +0000 (16:34 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 3 Aug 2015 09:34:16 +0000 (11:34 +0200)
commit3bbfafb77a06327fa1bc9f19bc55b5c558475091
tree121103773d33cf1135a8298e528eba81496c41c1
parent1987c947d905baa05bee430178e8eef882f36bd4
x86, tsc, locking/static_keys: Employ static_branch_likely()

Because of the static_key restrictions we had to take an unconditional
jump for the most likely case, causing $I bloat.

Rewrite to use the new primitives.

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>
arch/x86/kernel/tsc.c
This page took 0.025827 seconds and 5 git commands to generate.