lkml.org 
[lkml]   [2010]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [Linux-am33-list] [PATCH] workqueue: Fix alignment calculation in alloc_cwqs()
    Date
    David Howells <dhowells@redhat.com> wrote:

    > + const size_t align =
    > + max_t(size_t, 1 << (WORK_STRUCT_FLAG_BITS - BITS_PER_BYTE),
    > + __alignof__(unsigned long long));

    Actually, no, that's not right either. Need to subtract log2(BITS_PER_BYTE).

    David


    \
     
     \ /
      Last update: 2010-10-25 23:41    [W:0.024 / U:30.364 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site