X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=kernel%2Fjump_label.c;h=93ad6c1fb9b6212e706eb3ae08f7b881192008ec;hb=464b5847e61085f81bb99ce48eb427a0dc7617dc;hp=20400055f177cd9ab83748fd740a01036747df90;hpb=fb1b83d3ff78168e10799627f231cf0c05c9d80d;p=cascardo%2Flinux.git diff --git a/kernel/jump_label.c b/kernel/jump_label.c index 20400055f177..93ad6c1fb9b6 100644 --- a/kernel/jump_label.c +++ b/kernel/jump_label.c @@ -288,6 +288,9 @@ void __init jump_label_init(void) BUILD_BUG_ON((int)ATOMIC_INIT(0) != 0); BUILD_BUG_ON((int)ATOMIC_INIT(1) != 1); + if (static_key_initialized) + return; + jump_label_lock(); jump_label_sort_entries(iter_start, iter_stop);