mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-30 04:39:38 +00:00
![]() This adds a statically sized closed hash table implementation with low memory and CPU overhead. The API is inspired by kfifo. Storing, retrieving and deleting data does not involve any dynamic memory management, which makes it ideal for use in interrupt context. Static memory usage per entry comprises a 32 or 64 bit hash key, two bits for occupancy tracking and the value size stored in the table. No list heads or pointers are needed. Therefore this data structure should be quite cache-friendly, too. It uses linear probing and lazy deletion. During lookups free space is reclaimed and entries relocated to speed up future lookups. v2: squash in do_div and _BITOPS_LONG_SHIFT fixes Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> |
||
---|---|---|
.. | ||
asic_reg | ||
ivsrcid | ||
linux | ||
amd_acpi.h | ||
amd_pcie.h | ||
amd_pcie_helpers.h | ||
amd_shared.h | ||
atom-bits.h | ||
atom-names.h | ||
atom-types.h | ||
atombios.h | ||
atomfirmware.h | ||
atomfirmwareid.h | ||
cgs_common.h | ||
cgs_linux.h | ||
cik_structs.h | ||
displayobject.h | ||
dm_pp_interface.h | ||
kgd_kfd_interface.h | ||
pptable.h | ||
v9_structs.h | ||
vi_structs.h |