Re: [PATCH 12/22] lmb: Add lmb_find_area_node()

From: Benjamin Herrenschmidt
Date: Mon May 10 2010 - 02:38:20 EST


On Sat, 2010-05-08 at 08:17 -0700, Yinghai Lu wrote:
> + * Need to call this function after lmb_register_active_regions,
> + * so early_node_map[] is filled already.
> + */

This is easily replaced by something simpler using my current WIP branch
and its nid allocator. IE, You don't need to add
find_memory_core_early(0 or any of that. It can be made a lot more
simply.

Cheers,
Ben.

> +u64 __init lmb_find_area_node(int nid, u64 start, u64 end, u64 size,
> u64 align)
> +{
> + u64 addr;
> + addr = find_memory_core_early(nid, size, align, start, end);
> + if (addr != LMB_ERROR)
> + return addr;
> +
> + /* Fallback, should already have start end within node range
> */
> + return lmb_find_area(start, end, size, align);
> +}
> +

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/