Messages in this thread | | | Date | Tue, 06 Jul 2010 16:26:17 +0200 | From | Tejun Heo <> | Subject | Re: [PATCH 12/35] workqueue: update cwq alignement |
| |
On 07/06/2010 04:22 PM, Christoph Lameter wrote: > On Tue, 29 Jun 2010, Tejun Heo wrote: > >> What alignment maintenance? Are you talking about the UP code? If >> you're talking about the UP code, the ugliness there is because the >> current UP __alloc_percpu() can't honor the alignment parameter. > > Why do we need alignment on UP? Cachelines typically dont bounce if a > single processor accesses the data.
Because work->data is multiplexed with pointer and flag bits, so the targets of the pointer (cwq's) need to be aligned so that the lower part of the pointer always stays zero.
Thanks.
-- tejun
| |