lkml.org 
[lkml]   [2017]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v5 06/13] lockdep: Implement crossrelease feature
    On Wed, Mar 01, 2017 at 01:40:33PM +0900, Byungchul Park wrote:

    > Right. I decided to force MAX_XHLOCKS_NR to be power of 2 and everything
    > became easy. Thank you very much.

    Something like:

    BUILD_BUG_ON(MAX_XHLOCKS_NR & (MAX_XHLOCK_NR - 1));

    Should enforce I think.

    \
     
     \ /
      Last update: 2017-03-01 12:17    [W:3.253 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site