]> git.neil.brown.name Git - history.git/commit
[PATCH] ppc64: Make finish_device_tree use lmb_alloc, not klimit
authorAndrew Morton <akpm@osdl.org>
Mon, 26 Apr 2004 15:57:46 +0000 (08:57 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 26 Apr 2004 15:57:46 +0000 (08:57 -0700)
commitd6d33678f8fdb469a743bab4497c7c9c74f413b4
tree356408c422757db897824956c69f3de5f050744f
parent196431fd9c365c5781ac30cdef9b1cb2d7a59408
[PATCH] ppc64: Make finish_device_tree use lmb_alloc, not klimit

From: Rusty Russell <rusty@rustcorp.com.au>

finish_device_tree simply allocates nodes by incrementing klimit (ie.  using
memory on top of the kernel).  Change it to figure out how much memory it
needs, then use lmb_alloc to allocate that, then fill it in.

This gets rid of the only manipulation of klimit after prom_init.
arch/ppc64/kernel/btext.c
arch/ppc64/kernel/prom.c