]> git.baikalelectronics.ru Git - kernel.git/commit
kexec: do a cleanup for function kexec_load
authorMinfei Huang <mnfhuang@gmail.com>
Mon, 23 May 2016 23:24:19 +0000 (16:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 24 May 2016 00:04:14 +0000 (17:04 -0700)
commit944a5414236d42531387fe0dfb2c9df1548d23fd
tree24894ffc23a22f6f40a1f418811c17f73a15df10
parent8f1ea246d12fe5c8a0784e362a631f1fbbe45c8b
kexec: do a cleanup for function kexec_load

There are a lof of work to be done in function kexec_load, not only for
allocating structs and loading initram, but also for some misc.

To make it more clear, wrap a new function do_kexec_load which is used
to allocate structs and load initram.  And the pre-work will be done in
kexec_load.

Signed-off-by: Minfei Huang <mnfhuang@gmail.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Xunlei Pang <xlpang@redhat.com>
Cc: Baoquan He <bhe@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/kexec.c