Go to file
Will Deacon fdf371b63b locking/refcount: Move the bulk of the REFCOUNT_FULL implementation into the <linux/refcount.h> header
commit 77e9971c79 upstream.

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: Chen Zhuo <sagazchen@tencent.com>
Signed-off-by: Xinghui Li <korantli@tencent.com>
2024-06-11 21:18:06 +08:00
Documentation Revert "dmaengine: Remove dma_async_is_complete from client API" 2024-06-11 21:18:00 +08:00
LICENSES LICENSES: Rename other to deprecated 2019-05-03 06:34:32 -06:00
arch Revert "x86/extable: Fix _ASM_EXTABLE_HANDLE() was removed" 2024-06-11 21:18:05 +08:00
block ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
certs ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
crypto ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
dist ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
drivers locking/refcount: Define constants for saturation and max refcount values 2024-06-11 21:18:05 +08:00
fs eventfd: Export eventfd_ctx_do_read() 2024-06-11 21:15:04 +08:00
include locking/refcount: Move the bulk of the REFCOUNT_FULL implementation into the <linux/refcount.h> header 2024-06-11 21:18:06 +08:00
init cgroup: Introduce ioasids controller 2024-06-11 21:14:17 +08:00
ipc ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
kernel drivers/idxd: Fixup errors reported during DSA device migration 2024-06-11 21:18:02 +08:00
lib locking/refcount: Move the bulk of the REFCOUNT_FULL implementation into the <linux/refcount.h> header 2024-06-11 21:18:06 +08:00
mm bitmap: genericize percpu bitmap region iterators 2024-06-11 21:16:24 +08:00
net ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
package iommu/vt-d: Retain PASID entry if guest switched remapping mode 2024-06-11 21:18:02 +08:00
samples vfio/mbochs: Fix close when multiple device FDs are open 2024-06-11 21:15:41 +08:00
scripts PCI / VFIO: Add 'override_only' support for VFIO PCI sub system 2024-06-11 21:15:47 +08:00
security ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
sound ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
tools kvm: rename KVM_MAX_VCPU_ID to KVM_MAX_VCPU_IDS 2024-06-11 21:17:35 +08:00
usr tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
virt kvm: rename KVM_MAX_VCPU_ID to KVM_MAX_VCPU_IDS 2024-06-11 21:17:35 +08:00
.clang-format clang-format: Update with the latest for_each macro list 2019-08-31 10:00:51 +02:00
.cocciconfig
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl 2019-05-16 10:53:40 -07:00
.gitattributes ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
.gitignore ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
COPYING COPYING: use the new text with points to the license files 2018-03-23 12:41:45 -06:00
CREDITS MAINTAINERS: Remove Simon as Renesas SoC Co-Maintainer 2019-10-10 08:12:51 -07:00
Kbuild kbuild: do not descend to ./Kbuild when cleaning 2019-08-21 21:03:58 +09:00
Kconfig docs: kbuild: convert docs to ReST and rename to *.rst 2019-06-14 14:21:21 -06:00
MAINTAINERS docs: IOMMU user API 2024-06-11 21:11:40 +08:00
Makefile ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
README Drop all 00-INDEX files from Documentation/ 2018-09-09 15:08:58 -06:00
README.md tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
backport_remove_lists.txt tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
tools_key.pub tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00

README.md

Tencent Linux Kernel 4.0