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)
commitbe9e8d9541a95bdfac1c13d112cc032ea7fc745f
tree6c4fbc4c390f5c62ef058fe751a96b2f799988c7
parent50def2693a900dfb1d91872056dc8164245820fc
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