locking/static_keys: Add static_key_{en,dis}able() helpers
authorPeter Zijlstra <peterz@infradead.org>
Fri, 24 Jul 2015 13:03:40 +0000 (15:03 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 3 Aug 2015 09:34:14 +0000 (11:34 +0200)
commite33886b38cc82a9fc3b2d655dfc7f50467594138
treef28d2cdfd09a3220231ffaf085abfad85d92f45a
parent7dcfd915bae51571bcc339d8e3dda027287880e5
locking/static_keys: Add static_key_{en,dis}able() helpers

Add two helpers to make it easier to treat the refcount as boolean.

Suggested-by: Jason Baron <jasonbaron0@gmail.com>
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/sched/core.c