]> git.baikalelectronics.ru Git - kernel.git/commit
x86/kaslr: Simplify process_gb_huge_pages()
authorArvind Sankar <nivedita@alum.mit.edu>
Tue, 28 Jul 2020 22:57:13 +0000 (18:57 -0400)
committerIngo Molnar <mingo@kernel.org>
Fri, 31 Jul 2020 09:08:17 +0000 (11:08 +0200)
commitf69f967a925ca79236b233afae2c5a8e43b2e23a
tree6c4fbc4c390f5c62ef058fe751a96b2f799988c7
parentb1907b98b7b1f72422e83698d1acc4b447fed4ec
x86/kaslr: Simplify process_gb_huge_pages()

Replace the loop to determine the number of 1Gb pages with arithmetic.

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-13-nivedita@alum.mit.edu
arch/x86/boot/compressed/kaslr.c