]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 22 May 2019 22:15:04 +0000 (23:15 +0100)
commitd4e9d092ce3355aaad3e44a0fe0ecd4a57d31a36
tree080da0c11c486831cf56c2156c7c486381fe1abe
parent1637ff670ad30d13d430b71058939f399f5ad8bd
jump_label, locking/static_keys: Rename JUMP_LABEL_TYPE_* and related helpers to the static_key* pattern

commit a1efb01feca597b2abbc89873b40ef8ec6690168 upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
include/linux/jump_label.h
kernel/jump_label.c