[PATCH] powerpc: mem_init crash for sparsemem

Arnd Bergmann arnd at arndb.de
Sat Nov 5 08:43:48 EST 2005


On Freedag 04 November 2005 21:18, Andy Whitcroft wrote:
> Would it not make sense to use pfn_valid(), as that is not sparsemem
> specific?  Not looked at the code in question specifically, but if you
> can use section_has_mem_map() it should be equivalent:
> 
>         if (!pfn_valid(pgdat->node_start_pfn + i))
>                 continue;
> 
> Want to spin us a patch and I'll give it some general testing.

Yes, I guess pfn_valid() is the function I was looking for, thanks
for pointing that out.

Unfortunately, I don't have access to the machine over the weekend,
so I won't be able to test that until Monday.

	Arnd <><



More information about the Linuxppc64-dev mailing list