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    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site