[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3386.1288042727@redhat.com>
Date: Mon, 25 Oct 2010 22:38:47 +0100
From: David Howells <dhowells@...hat.com>
To: torvalds@...l.org, akpm@...ux-foundation.org
Cc: dhowells@...hat.com, Tejun Heo <tj@...nel.org>,
linux-am33-list@...hat.com, linux-kernel@...r.kernel.org,
Akira Takeuchi <takeuchi.akr@...panasonic.com>,
Mark Salter <msalter@...hat.com>
Subject: Re: [Linux-am33-list] [PATCH] workqueue: Fix alignment calculation in alloc_cwqs()
David Howells <dhowells@...hat.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists