diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2016-01-15 19:18:38 +0000 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2021-07-11 19:37:52 -0700 |
commit | 5f8732cece599b77806ca8b2578e2112ea3375e6 (patch) | |
tree | f27e54d2c0e7f739938441c32689e7a75a1cdac4 | |
parent | 29b19f55e33c0fef5a188db4452db348c03b8bbb (diff) | |
download | linux-kexec-kexec-v4.4.146.tar.gz |
arm64: kdump: relax BUG_ON() if more than one cpus are still activekexec-v4.4.146
We should try best in case of kdump.
So even if not all secondary cpus have shut down, we do kdump anyway.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
-rw-r--r-- | arch/arm64/kernel/machine_kexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/machine_kexec.c b/arch/arm64/kernel/machine_kexec.c index 0ba2ae495942e..3230551d0d3a4 100644 --- a/arch/arm64/kernel/machine_kexec.c +++ b/arch/arm64/kernel/machine_kexec.c @@ -157,7 +157,7 @@ void machine_kexec(struct kimage *kimage) phys_addr_t reboot_code_buffer_phys; void *reboot_code_buffer; - BUG_ON(num_online_cpus() > 1); + BUG_ON((num_online_cpus() > 1) && !WARN_ON(in_crash_kexec)); reboot_code_buffer_phys = page_to_phys(kimage->control_code_page); reboot_code_buffer = kmap(kimage->control_code_page); |