lkml.org 
[lkml]   [2010]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 17/35] sparsemem: put mem map for one node together.
On Tue, 09 Feb 2010 11:32:28 -0800
Yinghai Lu <yinghai@kernel.org> wrote:

> +#ifdef CONFIG_NO_BOOTMEM
> + free_early(__pa(vmemmap_buf_start), __pa(vmemmap_buf_end));
> + if (vmemmap_buf_start < vmemmap_buf) {
> + char name[15];
> +
> + memset(name, 0, sizeof(name));

Is the memset actually needed?

> + snprintf(name, 15, "MEMMAP %d", nodeid);

s/15/sizeof(name)/

> + reserve_early_without_check(__pa(vmemmap_buf_start),
> + __pa(vmemmap_buf), name);
> + }
> +#else


\
 
 \ /
  Last update: 2010-02-09 21:25    [from the cache]
©2003-2011 Jasper Spaans