summaryrefslogtreecommitdiffstats
path: root/usr/.gitignore
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@redhat.com>2014-08-08 23:25:48 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-09 00:57:32 +0200
commit255aedd90e3e804fb52e1a71636a3b22cf12f81b (patch)
tree5b25989bec463c43a82d159c8b285fdbbb57eb03 /usr/.gitignore
parentkexec: move segment verification code in a separate function (diff)
downloadlinux-255aedd90e3e804fb52e1a71636a3b22cf12f81b.tar.xz
linux-255aedd90e3e804fb52e1a71636a3b22cf12f81b.zip
kexec: use common function for kimage_normal_alloc() and kimage_crash_alloc()
kimage_normal_alloc() and kimage_crash_alloc() are doing lot of similar things and differ only little. So instead of having two separate functions create a common function kimage_alloc_init() and pass it the "flags" argument which tells whether it is normal kexec or kexec_on_panic. And this function should be able to deal with both the cases. This consolidation also helps later where we can use a common function kimage_file_alloc_init() to handle normal and crash cases for new file based kexec syscall. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Cc: Borislav Petkov <bp@suse.de> Cc: Michael Kerrisk <mtk.manpages@gmail.com> Cc: Yinghai Lu <yinghai@kernel.org> Cc: Eric Biederman <ebiederm@xmission.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Matthew Garrett <mjg59@srcf.ucam.org> Cc: Greg Kroah-Hartman <greg@kroah.com> Cc: Dave Young <dyoung@redhat.com> Cc: WANG Chao <chaowang@redhat.com> Cc: Baoquan He <bhe@redhat.com> Cc: Andy Lutomirski <luto@amacapital.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'usr/.gitignore')
0 files changed, 0 insertions, 0 deletions