]> git.karo-electronics.de Git - linux-beck.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)
commita1efb01feca597b2abbc89873b40ef8ec6690168
treeaf073fc563ab4bcd383999c1adc2313b1a62da48
parent76b235c6bcb16062d663e2ee96db0b69f2e6bc14
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:

  a833581e372a ("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