]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[S390] fix "mem=" handling in case of standby memory
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 19 Feb 2009 14:19:01 +0000 (15:19 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 19 Feb 2009 14:19:19 +0000 (15:19 +0100)
commit23d75d9cadd79bc9fd6553857d57c679cf18d4cb
tree647e18bd1a1ee86efe82dab68e446164c1ad13de
parentd5cd0343d2878b66e25e044f644563c6bf708833
[S390] fix "mem=" handling in case of standby memory

Standby memory detected with the sclp interface gets always registered
with add_memory calls without considering the limitationt that the
"mem=" kernel paramater implies.
So fix this and only register standby memory that is below the specified
limit.
This fixes zfcpdump since it uses "mem=32M". In case there is appr.
2GB standby memory present all of usable memory would be used for the
struct pages needed for standby memory.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/setup.h
arch/s390/kernel/setup.c
drivers/s390/char/sclp_cmd.c