[PATCH] ppc64: Simplify some lmb functions
authorMichael Ellerman <michael@ellerman.id.au>
Wed, 3 Aug 2005 10:21:26 +0000 (20:21 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 29 Aug 2005 00:53:37 +0000 (10:53 +1000)
commit71e1f55ad4bc4c8bcfe696400a950a34263a750e
treed8355e0b1302b201114c9998570c0a4ee7a26fcc
parent180379dcefb39e8bd05d562b0685e9084dffcc0a
[PATCH] ppc64: Simplify some lmb functions

lmb_phys_mem_size() can always return lmb.memory.size, as long as it's called
after lmb_analyze(), which it is. There's no need to recalculate the size on
every call.

lmb_analyze() was calculating a few things we then threw away, so just don't
calculate them to start with.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/ppc64/kernel/lmb.c