* Yinghai Lu <yhlu.kernel.send@gmail.com> wrote:
quoted text > don't need to allocate that one by one
quoted text > + 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
--
unsubscribe notice To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Messages in current thread:
Re: [PATCH] x86_64: allcate e820 resource struct all together , Ingo Molnar , (Fri Mar 21, 5:04 am)