lkml.org 
[lkml]   [2008]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86_64: allcate e820 resource struct all together

* Yinghai Lu <yhlu.kernel.send@gmail.com> wrote:

> don't need to allocate that one by one

> + struct resource *res;
> + res = alloc_bootmem_low(sizeof(struct resource) * e820.nr_map);

nice one - applied.

(minor style nit: please keep a newline between variable definitions and
the first line of code, to make it a bit more readable.)

Ingo


\
 
 \ /
  Last update: 2008-03-21 13:07    [from the cache]
©2003-2011 Jasper Spaans