[POWERPC] Fix mem= handling when the memory limit is > RMO size
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 4 Jul 2006 07:13:23 +0000 (17:13 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 7 Jul 2006 10:19:16 +0000 (20:19 +1000)
commite7c1f69d4fa4da47dc995b5de64b6cb76ae32081
treef28032f439eb7a0a667eb6ac969b008e3e317f2e
parent73ea6959b11821ba5ade77fb1d3d4aed52be3b67
[POWERPC] Fix mem= handling when the memory limit is > RMO size

There's a bug in my cleaned up mem= handling, if the memory limit is
larger than the RMO size we'll erroneously enlarge the RMO size.

Fix is to only change the RMO size if the memory limit is less than
the current RMO value.

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