]> git.baikalelectronics.ru Git - kernel.git/commit
jump_label, locking/static_keys: Rename JUMP_LABEL_TYPE_* and related helpers to...
authorPeter Zijlstra <peterz@infradead.org>
Fri, 24 Jul 2015 12:55:40 +0000 (14:55 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 3 Aug 2015 09:34:13 +0000 (11:34 +0200)
commit46e83d797bd52821395479412339b05c26c69be7
treeaf073fc563ab4bcd383999c1adc2313b1a62da48
parentdb86b886a870b7c9db3207d491019892bfbdb78e
jump_label, locking/static_keys: Rename JUMP_LABEL_TYPE_* and related helpers to the static_key* pattern

Rename the JUMP_LABEL_TYPE_* macros to be JUMP_TYPE_* and move the
inline helpers into kernel/jump_label.c, since that's the only place
they're ever used.

Also rename the helpers where it's all about static keys.

This is the second step in removing the naming confusion that has led to
a stream of avoidable bugs such as:

  f8d23b43c7a6 ("x86, perf: Fix static_key bug in load_mm_cr4()")

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>
include/linux/jump_label.h
kernel/jump_label.c