x86/mm/init: Add helper for freeing kernel image pages
authorDave Hansen <dave.hansen@linux.intel.com>
Thu, 2 Aug 2018 22:58:29 +0000 (15:58 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 5 Aug 2018 20:21:03 +0000 (22:21 +0200)
commit6ea2738e0ca0e626c75202fb051c1e88d7a950fa
treeb715945b050c0883f7aad08f7e21b69f01f96984
parent9f515cdb411ef34f1aaf4c40bb0c932cf6db5de1
x86/mm/init: Add helper for freeing kernel image pages

When chunks of the kernel image are freed, free_init_pages() is used
directly.  Consolidate the three sites that do this.  Also update the
string to give an incrementally better description of that memory versus
what was there before.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: keescook@google.com
Cc: aarcange@redhat.com
Cc: jgross@suse.com
Cc: jpoimboe@redhat.com
Cc: gregkh@linuxfoundation.org
Cc: peterz@infradead.org
Cc: hughd@google.com
Cc: torvalds@linux-foundation.org
Cc: bp@alien8.de
Cc: luto@kernel.org
Cc: ak@linux.intel.com
Cc: Kees Cook <keescook@google.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Link: https://lkml.kernel.org/r/20180802225829.FE0E32EA@viggo.jf.intel.com
arch/x86/include/asm/processor.h
arch/x86/mm/init.c
arch/x86/mm/init_64.c