Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 626b43f8 authored by Laura Abbott's avatar Laura Abbott Committed by Channagoud Kadabi
Browse files

arm64: Stop printing the virtual memory layout



Printing kernel addresses should be done in limited circumstances, mostly
for debugging purposes. Printing out the virtual memory layout at every
kernel bootup doesn't really fall into this category so delete the prints.
There are other ways to get the same information.

Change-Id: I39688092f969771c7f78ee88fed595d47122a93e
Acked-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarLaura Abbott <labbott@redhat.com>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Git-Repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/


Git-Commit: 071929dbdd865f779a89ba3f1e06ba8d17dd3743
[ckadabi] Added config option
Signed-off-by: default avatarChannagoud Kadabi <ckadabi@codeaurora.org>
parent 96a19ec5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -602,6 +602,7 @@ void __init mem_init(void)

	mem_init_print_info(NULL);

#ifdef CONFIG_PRINT_VMEMLAYOUT
#define MLK(b, t) b, t, ((t) - (b)) >> 10
#define MLM(b, t) b, t, ((t) - (b)) >> 20
#define MLG(b, t) b, t, ((t) - (b)) >> 30
@@ -644,7 +645,7 @@ void __init mem_init(void)
#undef MLK
#undef MLM
#undef MLK_ROUNDUP

#endif
	/*
	 * Check boundaries twice: Some fundamental inconsistencies can be
	 * detected at build time already.