powerpc: Change places using CONFIG_KEXEC to use CONFIG_KEXEC_CORE instead.
Commit 2965faa5e0
("kexec: split kexec_load syscall from kexec core
code") introduced CONFIG_KEXEC_CORE so that CONFIG_KEXEC means whether
the kexec_load system call should be compiled-in and CONFIG_KEXEC_FILE
means whether the kexec_file_load system call should be compiled-in.
These options can be set independently from each other.
Since until now powerpc only supported kexec_load, CONFIG_KEXEC and
CONFIG_KEXEC_CORE were synonyms. That is not the case anymore, so we
need to make a distinction. Almost all places where CONFIG_KEXEC was
being used should be using CONFIG_KEXEC_CORE instead, since
kexec_file_load also needs that code compiled in.
Signed-off-by: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
e2e806f9e4
commit
da6658859b
@@ -250,7 +250,7 @@ static int __init ps3_probe(void)
|
||||
return 1;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_KEXEC)
|
||||
#if defined(CONFIG_KEXEC_CORE)
|
||||
static void ps3_kexec_cpu_down(int crash_shutdown, int secondary)
|
||||
{
|
||||
int cpu = smp_processor_id();
|
||||
@@ -276,7 +276,7 @@ define_machine(ps3) {
|
||||
.progress = ps3_progress,
|
||||
.restart = ps3_restart,
|
||||
.halt = ps3_halt,
|
||||
#if defined(CONFIG_KEXEC)
|
||||
#if defined(CONFIG_KEXEC_CORE)
|
||||
.kexec_cpu_down = ps3_kexec_cpu_down,
|
||||
#endif
|
||||
};
|
||||
|
Reference in New Issue
Block a user