]> git.baikalelectronics.ru Git - kernel.git/commit
locking/refcount: Move the bulk of the REFCOUNT_FULL implementation into the <linux...
authorWill Deacon <will@kernel.org>
Thu, 21 Nov 2019 11:58:56 +0000 (11:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jul 2022 15:14:17 +0000 (17:14 +0200)
commit4e4a5378c14ff09a840a25933f315447dcea3530
treef73aa3f86c3598081e14d546b550349641390179
parent31cfc036faa250fcfc3aa8d90db75492de657c04
locking/refcount: Move the bulk of the REFCOUNT_FULL implementation into the <linux/refcount.h> header

[ Upstream commit 98b377c082f414273afe76eac902fc8c0cc3209d ]

In an effort to improve performance of the REFCOUNT_FULL implementation,
move the bulk of its functions into linux/refcount.h. This allows them
to be inlined in the same way as if they had been provided via
CONFIG_ARCH_HAS_REFCOUNT.

Signed-off-by: Will Deacon <will@kernel.org>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Tested-by: Hanjun Guo <guohanjun@huawei.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Elena Reshetova <elena.reshetova@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20191121115902.2551-5-will@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/refcount.h
lib/refcount.c