locking/static_key: Add support for deferred static branches
authorJakub Kicinski <jakub.kicinski@netronome.com>
Sat, 30 Mar 2019 00:08:52 +0000 (17:08 -0700)
committerIngo Molnar <mingo@kernel.org>
Mon, 29 Apr 2019 06:29:20 +0000 (08:29 +0200)
commitad282a8117d5048398f506f20b092c14b3b3c43f
treed376d10dadfb2cffa69309f8cd7dc0f02673f71a
parent948f83768a180ec8e85c4a8ff269d5e433d10815
locking/static_key: Add support for deferred static branches

Add deferred static branches.  We can't unfortunately use the
nice trick of encapsulating the entire structure in true/false
variants, because the inside has to be either struct static_key_true
or struct static_key_false.  Use defines to pass the appropriate
members to the helpers separately.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
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: Will Deacon <will.deacon@arm.com>
Cc: alexei.starovoitov@gmail.com
Cc: ard.biesheuvel@linaro.org
Cc: oss-drivers@netronome.com
Cc: yamada.masahiro@socionext.com
Link: https://lkml.kernel.org/r/20190330000854.30142-2-jakub.kicinski@netronome.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/jump_label_ratelimit.h
kernel/jump_label.c