Michael Ellerman fa93895329 [PATCH] powerpc: Don't allocate zero bytes in finish_device_tree()
In prom.c we run finish_node() on allnodes twice. The first time we just
calculate how much memory we'll need, the second time we do the actual work.

If the calculation stage determines that we need 0 bytes, then we should skip
the lmb allocation. Although an alloc of zero will work, it has been seen to
lead to a BUG_ON() in reserve_bootmem() on at least one machine.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-02-07 21:28:38 +11:00
..
2005-11-18 14:39:23 +11:00
2005-10-13 13:40:54 +10:00
2006-01-09 14:49:06 +11:00
2006-01-09 14:49:06 +11:00
2006-01-12 20:09:30 +11:00
2006-01-09 15:06:03 +11:00
2005-11-09 11:35:26 +11:00
2006-01-12 09:08:57 -08:00
2006-01-09 15:47:13 +11:00
2005-11-28 14:34:23 -08:00