]> git.baikalelectronics.ru Git - kernel.git/commit
jump_label: make static_key_enabled() work on static_key_true/false types too
authorTejun Heo <tj@kernel.org>
Fri, 18 Sep 2015 15:56:28 +0000 (11:56 -0400)
committerTejun Heo <tj@kernel.org>
Fri, 18 Sep 2015 15:56:28 +0000 (11:56 -0400)
commit7db3b75e1aea741dcdce636233f883e6ed361dcb
tree34b2364ce6da15daf6a3f03864d2d9a9a2baa7c2
parentb9f301341ecf4fd8789d342a967342924dde44c3
jump_label: make static_key_enabled() work on static_key_true/false types too

static_key_enabled() can be used on struct static_key but not on its
wrapper types static_key_true and static_key_false.  The function is
useful for debugging and management of static keys.  Update it so that
it can be used for the wrapper types too.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
include/linux/jump_label.h