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

2016-09-14 Thread Thomas Graf
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

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

2016-09-12 Thread Greg
On Fri, 2016-09-09 at 16:19 -0700, 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 i

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

2016-09-09 Thread Tom Herbert
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 o