]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - lib/once.c
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)
commitcf4c950b87ee2f547ad3abd3aca6ae3f3eb3443f
treeec62d0b29fcd7361e4abb8cdc95042597571cf2c
parentd93fa2ba64384a0bbee4ae7409d85fccb2cfcf14
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