Skip to content

Commit

Permalink
[S390] No panic for failed reboot
Browse files Browse the repository at this point in the history
If reboot fails (e.g. because wrong devno has been specified by the user),
we should just stop all cpus, but should not trigger a kernel panic.

Signed-off-by: Michael Holzheu <holzheu@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Michael Holzheu authored and Martin Schwidefsky committed Dec 4, 2006
1 parent 654452a commit 3902e47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/s390/kernel/ipl.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,8 @@ void do_reipl(void)
diag308(DIAG308_IPL, NULL);
break;
}
panic("reipl failed!\n");
printk(KERN_EMERG "reboot failed!\n");
signal_processor(smp_processor_id(), sigp_stop_and_store_status);
}

static void do_dump(void)
Expand Down

0 comments on commit 3902e47

Please sign in to comment.