lkml.org 
[lkml]   [2014]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC] Cancellable MCS spinlock rework
From
On Wed, Jul 2, 2014 at 9:39 PM, Jason Low <jason.low2@hp.com> wrote:
>
> And due to padding, the additional modification below reduces the
> size of struct rw_semaphore by 64 bits on my machine :)

Well, I think you could also make 'count' just be 'int' instead of 'long'.

I don't think we'll support 2 _billion_ processes/threads waiting on
the same semaphore any time soon, so the 'long' seems a bit of an
overkill on 64-bit architectures.

Linus.


\
 
 \ /
  Last update: 2014-07-03 18:21    [W:0.094 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site