jump_labels: Allow array initialisers
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 5 Sep 2016 17:25:47 +0000 (18:25 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 7 Sep 2016 08:41:11 +0000 (09:41 +0100)
commitef0da55a84a345f323ceddda3b6c78b25de90435
tree3e2573808bf74527b393823533fe0be5b009522f
parentdae8c235d9a21a564793ea9fe716233e11d30e21
jump_labels: Allow array initialisers

The static key API is currently designed around single variable
definitions. There are cases where an array of static keys is desirable,
so extend the API to allow this rather than using the internal static
key implementation directly.

Cc: Jason Baron <jbaron@akamai.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Suggested-by: Dave P Martin <Dave.Martin@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Documentation/static-keys.txt
include/linux/jump_label.h