lkml.org 
[lkml]   [2010]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v3 4/6] x86/PCI: allocate space from the end of a region, not the beginning
Date
On Wednesday, October 13, 2010 03:27:58 pm H. Peter Anvin wrote:
> On 10/13/2010 09:15 AM, Bjorn Helgaas wrote:
> >
> > +#define ALIGN_DOWN(x, a) ((x) & ~(a - 1))
> > - resource_size_t start = res->start;
> > + resource_size_t start = ALIGN_DOWN(res->end - size + 1, align);
> >
>
> Use round_down() here instead of inventing yet another macro?

Thanks! I searched for something, but I missed round_down().

Bjorn


\
 
 \ /
  Last update: 2010-10-14 16:43    [from the cache]
©2003-2011 Jasper Spaans