Thread (14 messages) 14 messages, 4 authors, 2016-09-20

Re: [PATCH RFC 1/6] spinlock: Add library function to allocate spinlock buckets array

flat view

From: Thomas Graf <tgraf@suug.ch>
Date: 2016-09-14 09:27:27

On 09/09/16 at 04:19pm, Tom Herbert wrote:
Add two new library functions alloc_bucket_spinlocks and
free_bucket_spinlocks. These are use to allocate and free an array
of spinlocks that are useful as locks for hash buckets. The interface
specifies the maximum number of spinlocks in the array as well
as a CPU multiplier to derive the number of spinlocks to allocate.
The number to allocated is rounded up to a power of two to make
the array amenable to hash lookup.

Signed-off-by: Tom Herbert <redacted>
Acked-by: Thomas Graf <tgraf@suug.ch>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help