]> git.baikalelectronics.ru Git - kernel.git/commit
once: switch to new jump label API
authorEric Biggers <ebiggers@google.com>
Mon, 9 Oct 2017 21:30:52 +0000 (14:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Oct 2017 03:26:23 +0000 (20:26 -0700)
commit798f9778ef040e2eb45903d69411cde420629cf4
treeec62d0b29fcd7361e4abb8cdc95042597571cf2c
parentf474ecdcafe43719527a3620c0516435c9e37b1b
once: switch to new jump label API

Switch the DO_ONCE() macro from the deprecated jump label API to the new
one.  The new one is more readable, and for DO_ONCE() it also makes the
generated code more icache-friendly: now the one-time initialization
code is placed out-of-line at the jump target, rather than at the inline
fallthrough case.

Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/once.h
lib/once.c