]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
LinuxKPI: Change flags parameter type of atomic_dec_and_lock_irqsave
authorVladimir Kondratyev <wulf@FreeBSD.org>
Mon, 5 Jul 2021 00:19:01 +0000 (03:19 +0300)
committerVladimir Kondratyev <wulf@FreeBSD.org>
Tue, 20 Jul 2021 22:43:52 +0000 (01:43 +0300)
commit71d815861f1cd0281443a216998c23000fb4b301
treefbf57ba7602d05d6ef302192fd2d825d32db6bff
parent62791884174ee9a6c9b37a15b901f1a7d47be33a
LinuxKPI: Change flags parameter type of atomic_dec_and_lock_irqsave

On Linux atomic_dec_and_lock_irqsave is a wrapper macro which provides
a reference to third parameter rather than parameter value itself to
implementation routine called _atomic_dec_and_lock_irqsave [1].

While here, implement a fast path.

[1] https://github.com/torvalds/linux/blob/master/include/linux/spinlock.h#L476

Reviewed by: hselasky
Differential revision: https://reviews.freebsd.org/D30781

(cherry picked from commit c77ec79b57aa92b428b940ed550a4a14ed44da48)
sys/compat/linuxkpi/common/include/linux/spinlock.h