ARM: 8636/1: Cleanup sanity_check_meminfo
authorLaura Abbott <labbott@redhat.com>
Fri, 13 Jan 2017 21:51:08 +0000 (22:51 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:56:52 +0000 (02:56 +0000)
commit162acd0e699aea130b7b7c769971cf2a8e572bbf
treec8c71ec0a6c7135a43e7dc3834998669a6328040
parentac86ef70984b1464adae48d75094e5be0f92956a
ARM: 8636/1: Cleanup sanity_check_meminfo

commit 374d446d25d6271ee615952a3b7f123ba4983c35 upstream.

The logic for sanity_check_meminfo has become difficult to
follow. Clean up the code so it's more obvious what the code
is actually trying to do. Additionally, meminfo is now removed
so rename the function to better describe its purpose.

Tested-by: Magnus Lilja <lilja.magnus@gmail.com>
Reviewed-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Julien Grall <julien.grall@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/kernel/setup.c
arch/arm/mm/mmu.c
arch/arm/mm/nommu.c