Re: [PATCH] powerpc: mem_init crash for sparsemem

Arnd Bergmann
2005-11-04T21:42:29Z

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.