]> git.baikalelectronics.ru Git - kernel.git/commit
x86/kaslr: Short-circuit gb_huge_pages on x86-32
authorArvind Sankar <nivedita@alum.mit.edu>
Tue, 28 Jul 2020 22:57:12 +0000 (18:57 -0400)
committerIngo Molnar <mingo@kernel.org>
Fri, 31 Jul 2020 09:08:17 +0000 (11:08 +0200)
commitb1907b98b7b1f72422e83698d1acc4b447fed4ec
tree43faad561938da02c8f1d70a2120ca75b19ae73e
parent1925eb7df0fb075e9b4c67abbdb2f01ca8b18c25
x86/kaslr: Short-circuit gb_huge_pages on x86-32

32-bit does not have GB pages, so don't bother checking for them. Using
the IS_ENABLED() macro allows the compiler to completely remove the
gb_huge_pages code.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200728225722.67457-12-nivedita@alum.mit.edu
arch/x86/boot/compressed/kaslr.c