File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
arch/powerpc/platforms/85xx Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -398,6 +398,7 @@ static void mpc85xx_smp_kexec_cpu_down(int crash_shutdown, int secondary)
398
398
hard_irq_disable ();
399
399
mpic_teardown_this_cpu (secondary );
400
400
401
+ #ifdef CONFIG_CRASH_DUMP
401
402
if (cpu == crashing_cpu && cpu_thread_in_core (cpu ) != 0 ) {
402
403
/*
403
404
* We enter the crash kernel on whatever cpu crashed,
@@ -406,9 +407,11 @@ static void mpc85xx_smp_kexec_cpu_down(int crash_shutdown, int secondary)
406
407
*/
407
408
disable_threadbit = 1 ;
408
409
disable_cpu = cpu_first_thread_sibling (cpu );
409
- } else if (sibling != crashing_cpu &&
410
- cpu_thread_in_core (cpu ) == 0 &&
411
- cpu_thread_in_core (sibling ) != 0 ) {
410
+ } else if (sibling == crashing_cpu ) {
411
+ return ;
412
+ }
413
+ #endif
414
+ if (cpu_thread_in_core (cpu ) == 0 && cpu_thread_in_core (sibling ) != 0 ) {
412
415
disable_threadbit = 2 ;
413
416
disable_cpu = sibling ;
414
417
}
You can’t perform that action at this time.
0 commit comments