Re: [PATCH v4 2/3] s390: Implement arch_do_panic()
Heiko Carstens <[email protected]>
| Newsgroups | org.kernel.vger.sparclinux,org.kernel.vger.linux-kernel,org.kernel.vger.linux-s390 |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Aug 05, 2026 at 11:48:37AM +0200, Mete Durlu wrote: > Implement s390 specific arch_do_panic() instead of using s390 specific > ifdef sections in vpanic() code. > No functional changes. > > Signed-off-by: Mete Durlu <[email protected]> > --- > arch/s390/kernel/ipl.c | 6 ++++++ > kernel/panic.c | 3 --- > 2 files changed, 6 insertions(+), 3 deletions(-) > > diff --git a/arch/s390/kernel/ipl.c b/arch/s390/kernel/ipl.c > index 3c346b02ceb9..31ff7c12c354 100644 > --- a/arch/s390/kernel/ipl.c > +++ b/arch/s390/kernel/ipl.c > @@ -13,6 +13,7 @@ > #include <linux/device.h> > #include <linux/delay.h> > #include <linux/kstrtox.h> > +#include <linux/panic.h> > #include <linux/panic_notifier.h> > #include <linux/reboot.h> > #include <linux/ctype.h> > @@ -2343,6 +2344,11 @@ static struct notifier_block on_panic_nb = { > .priority = INT_MIN, > }; > > +void arch_do_panic(void) > +{ > + disabled_wait(); > +} > + Please move this to arch/s390/kernel/traps.c somewhere near kernel_stack_invalid() and monitor_event_exception().