diff options
author | Benjamin Herrenschmidt | 2016-07-05 15:04:12 +1000 |
---|---|---|
committer | Michael Ellerman | 2016-07-21 19:17:23 +1000 |
commit | f7b9ebb79e90b19bf6a2cb805a536258437fc3fa (patch) | |
tree | 127c71357cfc22ac4f8e0f07cb3fc02defe2e47a /arch/powerpc/kernel/setup-common.c | |
parent | e39afba3aa11f7088ddc00d37ab34a85d960a76e (diff) |
powerpc: Re-order setup_panic()
Do it right after probe_machine() since it's about testing ppc_md,
and put the test in the common code.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/setup-common.c')
-rw-r--r-- | arch/powerpc/kernel/setup-common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index b8ee1c867ee3..ca9255e3b763 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c @@ -688,6 +688,8 @@ static struct notifier_block ppc_panic_block = { void __init setup_panic(void) { + if (!ppc_md.panic) + return; atomic_notifier_chain_register(&panic_notifier_list, &ppc_panic_block); } |