lkml.org 
[lkml]   [2010]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 11/12] x86 rwsem: down_read_unfair implementation
Date
Michel Lespinasse <walken@google.com> wrote:

> #define RWSEM_WAITING_BIAS (-RWSEM_ACTIVE_MASK-1)
> #define RWSEM_ACTIVE_READ_BIAS RWSEM_ACTIVE_BIAS
> +#define RWSEM_ACTIVE_WRITE_BIAS (2 * RWSEM_WAITING_BIAS + \
> + RWSEM_ACTIVE_BIAS)

These are getting a bit meaningless. Can you replace them with hex numbers to
make it clearer what's going on? Putting a worked example in the patch
description would be good too.

David


\
 
 \ /
  Last update: 2010-05-12 15:13    [W:0.216 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site